l.r.m.p.ProductJobDerived(BaseRunnableJob) : class documentation

Part of lp.registry.model.productjob View In Hierarchy

Known subclasses: lp.registry.model.productjob.ProductNotificationJob, lp.registry.tests.test_productjob.FakeProductJob, lp.registry.tests.test_productjob.OtherFakeProductJob

Intermediate class for deriving from ProductJob.

Storm classes can't simply be subclassed or you can end up with multiple objects referencing the same row in the db. This class uses lazr.delegates, which is a little bit simpler than storm's inheritance solution to the problem. Subclasses need to override the run() method.

Method __init__ Undocumented
Method __repr__ Undocumented
Class Method create See IProductJob.
Class Method find See IPersonMergeJobSource.
Class Method iterReady Iterate through all ready ProductJobs.
Method log_name Undocumented
Method getOopsVars See IRunnableJob.

Inherited from BaseRunnableJob:

Method __eq__ Undocumented
Method __ne__ Undocumented
Method __lt__ Undocumented
Method getOopsRecipients Return a list of email-ids to notify about oopses.
Method getOperationDescription Undocumented
Method getErrorRecipients Return a list of email-ids to notify about user errors.
Method getOopsMailController Return a MailController for notifying people about oopses.
Method getUserErrorMailController Return a MailController for notifying about user errors.
Method notifyOops Report this oops.
Method notifyUserError See IRunnableJob.
Method makeOopsReport Generate an OOPS report using the given OOPS configuration.
Method acquireLease Undocumented
Method taskId Return a task ID that gives a clue what this job is about.
Method runViaCelery Request that this job be run via celery.
Method getDBClass Undocumented
Method celeryCommitHook Hook function to call when a commit completes.
Method celeryRunOnCommit Configure transaction so that commit runs this job via Celery.
Method queue See IJob.

Inherited from BaseRunnableJobSource (via BaseRunnableJob):

Static Method contextManager Undocumented
def __init__(self, job):
Undocumented
def __repr__(self):
Undocumented
@classmethod
def create(cls, product, metadata):
See IProductJob.
@classmethod
def find(cls, product, date_since=None, job_type=None):
See IPersonMergeJobSource.
@classmethod
def iterReady(cls):
Iterate through all ready ProductJobs.
@property
def log_name(self):
Undocumented
def getOopsVars(self):
See IRunnableJob.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.