Trees | Indices | Help |
|
---|
|
Queue used to manage the jobs.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
(list, list) |
|
||
|
|||
|
|||
_QueuedJob or None |
|
||
_QueuedJob or None |
|
||
_QueuedJob or None |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
boolean |
|
||
|
|||
|
|||
|
|||
int |
|
||
|
|||
|
|||
list |
|
||
bool |
|
||
|
|||
Inherited from |
|
|||
list |
|
||
|
|
|||
|
|||
str |
|
||
str |
|
||
list |
|
||
|
|||
tuple; (boolean, string or list) |
|
|
|||
Inherited from |
|
Constructor for JobQueue. The constructor will initialize the job queue object and then start loading the current jobs from disk, either for starting them (if they were queue) or for aborting them (if they were already running).
|
Load a job from the job queue Pick up a job that already is in the job queue and start/resume it. |
|
Register a new node with the queue.
|
Callback called when removing nodes from the cluster.
|
Verifies the status of an RPC call. Since we aim to keep consistency should this node (the current master) fail, we will log errors if our rpc fail, and especially log the case when more than half of the nodes fails.
|
Helper for returning the node name/ip list.
|
Writes a file locally and then replicates it to all nodes. This function will replace the contents of a file on the local node and then replicate it to all the other nodes we have.
|
Renames a file locally and then replicate the change. This function will rename a file in the local queue directory and then replicate this rename to all the other nodes we have.
|
Returns the job file for a given job id.
|
Returns the archived job file for a give job id.
|
Build list of directories containing job files.
|
Return all known job IDs. The method only looks at disk because it's a requirement that all jobs are present on disk (so in the _memcache we don't have any extra IDs).
|
Loads a job from the disk or memory. Given a job id, this will return the cached job object if existing, or try to load the job from the disk. If loading from disk, it will also add the job to the cache.
|
Load the given job file from disk. Given a job file, read, load and restore it in a _QueuedJob format.
|
Load the given job file from disk. Given a job file, read, load and restore it in a _QueuedJob format. In case of error reading the job, it gets returned as None, and the exception is logged.
|
Resolves relative job IDs in dependencies.
|
Helper function to add jobs to worker pool's queue.
|
Helper function to add jobs to worker pool's queue.
|
Gets the status of a job for dependencies.
|
Update a job's on disk storage. After a job has been modified, this function needs to be called in order to write the changes to disk and replicate them to the other nodes.
|
Checks if a job has been finalized.
|
Cancels a job. This will only succeed if the job has not started yet.
|
Changes a job's priority.
|
Modifies a job.
|
Archives jobs.
|
Returns a list of jobs in queue.
|
Returns a list of jobs in queue.
|
Prepare to stop the job queue. Returns whether there are any jobs currently running. If the latter is
the case, the job queue is not yet ready for shutdown. Once this function
returns
|
Stops the job queue. This shutdowns all the worker threads an closes the queue.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Aug 22 11:06:20 2016 | http://epydoc.sourceforge.net |