l.s.i.s.ISnapRequestBuildsJobSource(IJobSource) : interface documentation

Part of lp.snappy.interfaces.snapjob View In Hierarchy

No interface docstring
Method create Request builds of a snap package.
Method findBySnap Find jobs for a snap.
Method getBySnapAndID Get a job by snap and job ID.
Method findBuildsForJobs Find builds resulting from an iterable of `SnapRequestBuildJob`s.

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(snap, requester, archive, pocket, channels, architectures=None):
Request builds of a snap package.
ParameterssnapThe snap package to build.
requesterThe person requesting the builds.
archiveThe IArchive to associate the builds with.
pocketThe pocket that should be targeted.
channelsA dictionary mapping snap names to channels to use for these builds.
architecturesIf not None, limit builds to architectures with these architecture tags (in addition to any other applicable constraints).
def findBySnap(snap, statuses=None, job_ids=None):
Find jobs for a snap.

:param snap: A snap package to search for.
:param statuses: An optional iterable of `JobStatus`es to search for.
:param job_ids: An optional iterable of job IDs to search for.
:return: A sequence of `SnapRequestBuildsJob`s with the specified
    snap.
def getBySnapAndID(snap, job_id):
Get a job by snap and job ID.
ReturnsThe SnapRequestBuildsJob with the specified snap and ID.
RaisesNotFoundError if there is no job with the specified snap and ID, or its job_type is not SnapJobType.REQUEST_BUILDS.
def findBuildsForJobs(jobs, user=None):
Find builds resulting from an iterable of `SnapRequestBuildJob`s.

:param jobs: An iterable of `SnapRequestBuildJob`s to search for.
:param user: If passed, check that the builds are for archives
    visible by this user.  (No access checks are performed on the
    snaps or on the builds.)
:return: A dictionary mapping `SnapRequestBuildJob` IDs to lists of
    their resulting builds.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.