woom.job.ScheduledJob

woom.job.ScheduledJob#

class woom.job.ScheduledJob(manager, name, script, args, queue=None, jobid=None, submission_date=None, status='UNKNOWN', subproc=None, artifacts=None, submission_dir=None, blocking=True)[source]#
__init__(manager, name, script, args, queue=None, jobid=None, submission_date=None, status='UNKNOWN', subproc=None, artifacts=None, submission_dir=None, blocking=True)#

Attributes

files

dict of job files like script, status, out, err and json

overview_format

Methods

cancel([graceful, timeout])

Kill the job using scheduler commands

dump([json_file])

Export to json in job script directory

get_overview([update])

get_overview_header()

get_status([fallback])

Query and set the status of this job

is_running()

kill([graceful, timeout])

Kill the job using scheduler commands

load(manager, json_file[, append])

Load a job into a manager from a json file

query_status()

Query status for a single job

set_status(status[, fallback])

Set the status of this job without query

to_dict()

wait()

Wait for a job to finish