Trees | Indices | Help |
|
---|
|
Queue used to manage the jobs.
|
|||
|
|||
|
|||
(list, list) |
|
||
|
|||
|
|||
_QueuedJob or None |
|
||
_QueuedJob or None |
|
||
_QueuedJob or None |
|
||
|
|||
|
|||
boolean |
|
||
|
|||
|
|||
|
|||
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).
|
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.
|
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.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Apr 4 13:43:57 2016 | http://epydoc.sourceforge.net |