Part of lp.snappy.interfaces.snapjob View In Hierarchy
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. |
Parameters | snap | The snap package to build. |
requester | The person requesting the builds. | |
archive | The IArchive to associate the builds with. | |
The pocket that should be targeted. | ||
channels | A dictionary mapping snap names to channels to use for these builds. | |
architectures | If not None, limit builds to architectures with these architecture tags (in addition to any other applicable constraints). |
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.
Returns | The SnapRequestBuildsJob with the specified snap and ID. | |
Raises | NotFoundError if there is no job with the specified snap
and ID, or its job_type is not SnapJobType.REQUEST_BUILDS . |
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.