l.r.i.p.IProductJobSource(IJobSource) : interface documentation

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

Known subclasses: lp.registry.interfaces.productjob.IProductNotificationJobSource, lp.registry.tests.test_productjob.IProductThingJobSource

An interface for creating and finding `IProductJob`s.
Method create Create a new IProductJob.
Method find Find `IProductJob`s that match the specified criteria.

Inherited from IJobSource:

Int memory_limit Undocumented
Method iterReady Iterate through all jobs.
Method contextManager Get a context for running this kind of job in.
def create(product, metadata):
Create a new IProductJob.
ParametersproductAn IProduct.
metadataa dict of configuration data for the job. The data must be JSON compatible keys and values.
def find(product=None, date_since=None, job_type=None):
Find `IProductJob`s that match the specified criteria.

:param product: Match jobs for specific product.
:param date_since: Match jobs since the specified date.
:param job_type: Match jobs of a specific type. Type is expected
    to be a class name.
:return: A `ResultSet` yielding `IProductJob`.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.