BookmarkSubscribeRSS Feed
Quartz | Level 8



Just wondering if there is a setting on SAS Grid Manager or a CLI command that can be scheduled to run to remove idle sessions with in a specific time period, as we are noting that there are some sessions going back a few days.  Also, we want to set our batch to be the highest priority on the grid is there a setting to provide batch all the resources it needs and all others secondary.


Many thanks



Grid Manager is not able to determine if a job is idle or not, only that the process is running. For things like Workspace Servers you can set an inactive client timeout, so the Object Spawner terminates the Workspace Server if it has not run any code within a given time period. This would prevent idle workspace servers from a user starting and connecting with Enterprise Guide and then leaving it running for example. There is a maxClockTIme limit in the Grid configuration that would prevent any jobs from running over that time, but this would kill the job regardless of whether or not it is idle.

You can set priority based on the queue the job is submitted to, so by routing batch jobs to a batch queue with a higher priority than the others would give them priority, but this refers only to which job will be sent to a host for execution first, and does not refer to consumed resources, if other jobs are already consuming all job slots for instance, the batch job would still have to wait for a job slot to open up.

Preemption allows for one job to pause another, so if all the job slots are full it would pause a lower priority job and then use the slot that job was using for instance. Typically though you would not want to preempt interactive sessions (like Workspace Servers) as this would essentially kick users out.

Configuring Queues
Greg Wootton | Principal Systems Technical Support Engineer

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

CLI in SAS Viya

Learn how to install the SAS Viya CLI and a few commands you may find useful in this video by SAS’ Darrell Barton.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 2 in conversation