vtk_jobqueue

vtk_jobqueue

Usage:         
vtk_jobqueue cmd args

Description:   
'cmd' is one of: 
            
- info <jobId> <option>     -- Get info about a job 
- refresh <n>               -- Refresh the cached database 
- count                     -- Count the jobs in the queue 
- get                       -- Get the list of the jobs in the queue 
- time, timepp              -- Total time of jobs in the queue. 
- unknown                   -- Number of jobs of unknown duration in the queue.

Note:          
Do not use this procedure. Use vtk_jobqueue_get instead.

vtk_jobqueue_delete

Usage:         
vtk_jobqueue_delete jobId|setId ...  -why WHY_REASON

Description:   
Delete one or more jobs from the queue. This has the effect of descheduling the given jobs. If the ids refer to sets, then all 
jobs in the set are descheduled. The WHY_REASON is optional. If included, gets set on WHYSTATUS field of job. 

Examples:              
vtk_jobqueue_delete 12122 12124 
vtk_jobqueue_delete 12122 12124 -why {Custom script stopped jobs}

Returns:       
Nothing

vtk_jobqueue_get

Usage:         
vtk_jobqueue_get [n] | ["buckets"] | "count"

Description:
Get information about the job queue. If option n is

1. equal to 0, the procedure returns 3 numbers.
   1. number of jobs in the queue
   2. total expected duration
   3. number of unknown jobs

2. greater than 0, it returns a verbose report, with 'n' indicating the number of jobs to report (OBSOLETE: DO NOT USE)
                 
3. less than 0, return list of buckets. Use vtk_generic_get_buckets instead.
                 
If the argument is the string 'count' the procedure returns just the total number of jobs in the queue.
              
If the argument is the string 'buckets', the procedure returns a list with one element for each bucket. Each element in turn is a list with the following elements:

1. Number of jobs in the bucket.
2. Group
3. User
4. Tool
5. Priority
6. Expected duration
7. A quoted list of resources