gws.lib.job

Source code: gws.lib.job

Package Contents

gws.lib.job.create(root: gws.Root, user: gws.User, worker: str, payload: dict = None) Object
exception gws.lib.job.Error

Bases: gws.Error

GWS error.

gws.lib.job.get(root: gws.Root, uid) Object | None
class gws.lib.job.Object(root: gws.Root, rec)

Bases: gws.Job

Background Job object.

worker: str
cancel()
remove()
run()
update(payload=None, state=None, error=None)
exception gws.lib.job.PrematureTermination

Bases: Exception

Common base class for all non-exit exceptions.

gws.lib.job.remove(uid)
gws.lib.job.run(root: gws.Root, uid)