xqute.defaults
Default settings and utilities for xqute
Attributes
DEFAULT_JOB_CMD_WRAPPER_SHELL
(str) — The default shell for job wrapperDEFAULT_JOB_CMD_WRAPPER_TEMPLATE
(str) — The template for job cmd wrappingDEFAULT_JOB_ERROR_STRATEGY
(str) — The default strategy when there iserror happenedDEFAULT_JOB_METADIR
(Path) — The default meta directory for jobsDEFAULT_JOB_NUM_RETRIES
(int) — Default number of retries whenDEFAULT_JOB_ERROR_STRATEGY is retryDEFAULT_JOB_SUBMISSION_BATCH
(int) — Default consumer workersDEFAULT_SCHEDULER_FORKS
(int) — Default number of job forks for scheduler
Classes
JobErrorStrategy
— The strategy when error happen from jobs</>JobStatus
— The status of a job</>
class
xqute.defaults.
JobErrorStrategy
(
)
The strategy when error happen from jobs
Attributes
HALT
— halt the whole programIGNORE
— ignore and run next jobsRETRY
— retry the job
class
xqute.defaults.
JobStatus
(
)
The status of a job
Life cycles: ........................queued in scheduler INIT -> QUEUED -> SUBMITTED -> RUNNING -> FINISHED (FAILED) INIT -> QUEUED -> SUBMITTED -> RUNNING -> KILLING -> FINISHED INIT -> QUEUED -> SUBMITTED -> KILLING -> FINISHED INIT -> QUEUED -> (CANELED)
Attributes
FAILED
— When a job is failedFINISHED
— When a job is finishedINIT
— When a job is initializedKILLING
— When a job is being killedQUEUED
— When a job is queuedRETRYING
— When a job is to be retriedRUNNING
— When a job is runningSUBMITTED
— When a job is sumitted
classmethod
get_name
(
*statuses
)
Get the name of the status
Parameters
*statuses
(int) — The status values
Returns (Union)
The name of the status if a single status is passed, otherwisea tuple of names