About Queues
RunMyJobs uses Queues to manage groups of processes. Queues distribute processes to Process Servers, where the processes actually run. You can use Queues to limit the number of processes that can run simultaneously, distribute workload across multiple systems and provide fail-over facilities.
RunMyJobs provides a standard Queue named System. You cannot change or hold this Queue, so you will most likely need to create your own Queues.
Note: Redwood recommends that you specify a time zone on a Queue to make sure the correct time is used, especially if you tie it to a Time Window to it.
Queues and Process Servers
A Queue can be served by more than one Process Server, and a Process Server can be associated with multiple Queues.
-
You can link a Queue to a Process Server by creating a Queue provider in the Queues tab for the Process Server.
-
You can link a Process Server to a Queue in the Process Servers tab for the Queue.
Queue Providers
The way to associate a Queue with a Process Server is to add a Queue provider to that Process Server. A Queue provider specifies the following things:
-
A reference to a specific Queue.
-
Whether the Queue should be initially held.
-
An execution size for the Queue.
-
A hold level.
-
An optional Time Window and time zone.
Queue Restrictions
A process that needs to be executed waits in a Queue until a Process Server that (a) serves that Queue, and (b) provides the required Resources is available. In addition, such processes are subject to Queue limits. For example, a Queue's Time Window can restrict it from executing processes during certain times. Queue providers can also have restrictions.
If a Queue has multiple restrictions, he most restrictive setting applies. For example, assume a Queue has an Execution Size of 3
. If a Queue provider serving this same Queue has an execution size of 6
, this latter value is never reached. Similarly, if the Time Window of a Queue provider is always closed during the Time Window of the Queue, the Process Server will not run any processes from that Queue.