| Trees | Indices | Help |
|
|---|
|
|
Module implementing the job queue handling.
|
|||
| None or int |
|
||
|
|||
|
|||
| utils.FileLock |
|
||
| boolean |
|
||
|
|||
| int |
|
||
| str |
|
||
|
|||
|
|||
JOBS_PER_ARCHIVE_DIRECTORY = constants.JSTORE_JOBS_PER_ARCHIVE
|
|||
Imports: errno, os, constants, errors, runtime, utils, pathutils
|
|||
Reads a file containing a number.
|
Read the serial file. The queue should be locked while this function is called. |
Read the queue version. The queue should be locked while this function is called. |
Open and lock job queue. If necessary, the queue is automatically initialized.
|
Check if the queue is marked to be drained. This currently uses the queue drain file, which makes it a per-node flag. In the future this can be moved to the config file.
|
Sets the drain flag for the queue.
Attention: This function should only called the current holder of the queue lock |
Convert a job ID to int format. Currently this just is a no-op that performs some checks, but if we want to change the job id format this will abstract this change.
|
Returns the archive directory for a job.
|
|
|||
JOBS_PER_ARCHIVE_DIRECTORY
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Apr 4 13:43:46 2016 | http://epydoc.sourceforge.net |