Make SM DetachedCleanupTask scheduling related to max detach time
Description
The task that cleans up detached but not resumed sessions currently runs every 3 minutes (hard-coded). Instead, it should run with a frequency that's dictated by the maximum time that sessions are allowed to be idle.
The task that cleans up detached but not resumed sessions currently runs every 3 minutes (hard-coded). Instead, it should run with a frequency that's dictated by the maximum time that sessions are allowed to be idle.