gws.tools.job

class gws.tools.job.State[source]
init = 'init'

the job is being created

open = 'open'

the job is just created and waiting for start

running = 'running'

the job is running

complete = 'complete'

the job has been completed successfully

error = 'error'

there was an error

cancel = 'cancel'

the job was cancelled

exception gws.tools.job.Error[source]
exception gws.tools.job.PrematureTermination[source]
gws.tools.job.create(uid, user: gws.types.IUser, worker: str, project_uid=None, args=None)[source]
gws.tools.job.get(uid)[source]
gws.tools.job.remove(uid)[source]
gws.tools.job.get_for(user, uid)[source]
class gws.tools.job.Job(rec)[source]
user
progress
run()[source]
update(**kwargs)[source]
cancel()[source]
remove()[source]