l.s.j.m.j.Job(SQLBase) : class documentation

Part of lp.services.job.model.job View In Hierarchy

See IJob.
Method job_id Undocumented
Method is_pending See IJob.
Method is_runnable See IJob.
Class Method createMultiple Create multiple `Job`s at once.
Method acquireLease See IJob.
Method getTimeout Return the number of seconds until the job should time out.
Method start See IJob.
Method complete See IJob.
Method fail See IJob.
Method queue See IJob.
Method suspend See IJob.
Method resume See IJob.
Method _set_status Undocumented

Inherited from SQLBase:

Method __init__ Extended version of the SQLObjectBase constructor.
Method __repr__ Undocumented
Method destroySelf Undocumented
Method __eq__ Equality operator.
Method __ne__ Inverse of __eq__.
Method __storm_invalidated__ Flush cached properties.
Class Method _get_store Undocumented
@property
def job_id(self):
Undocumented
def _set_status(self, status):
Undocumented
@property
def is_pending(self):
See IJob.
@property
def is_runnable(self):
See IJob.
@classmethod
def createMultiple(self, store, num_jobs, requester=None):
Create multiple `Job`s at once.

:param store: `Store` to ceate the jobs in.
:param num_jobs: Number of `Job`s to create.
:param request: The `IPerson` requesting the jobs.
:return: An iterable of `Job.id` values for the new jobs.
def acquireLease(self, duration=300):
See IJob.
def getTimeout(self):
Return the number of seconds until the job should time out.

Jobs timeout when their leases expire. If the lease for this job has already expired, return 0.

def start(self, manage_transaction=False):
See IJob.
def complete(self, manage_transaction=False):
See IJob.
def fail(self, manage_transaction=False):
See IJob.
def queue(self, manage_transaction=False, abort_transaction=False, add_commit_hook=None):
See IJob.
def suspend(self, manage_transaction=False):
See IJob.
def resume(self):
See IJob.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.