Job class to request generation or update of `DistroSeriesDifference`s.
Function | make_metadata | Return JSON metadata for a job on sourcepackagename_id . |
Function | create_job | Create a DistroSeriesDifferenceJob for a given source package. |
Function | create_multiple_jobs | Create `DistroSeriesDifferenceJob`s between parent and derived series. |
Function | find_waiting_jobs | Look for pending DistroSeriesDifference jobs on a package. |
Function | may_require_job | Might publishing this package require a new job? |
Function | has_package | Does distroseries have the given source package? |
Class | DistroSeriesDifferenceJob | A `Job` type for creating/updating `DistroSeriesDifference`s. |
sourcepackagename_id
.DistroSeriesDifferenceJob
for a given source package.Parameters | derived_series | A DistroSeries that is assumed to be derived
from another one. |
sourcepackagename | The SourcePackageName whose publication
history has changed. | |
parent_series | A DistroSeries that is a parent of
derived_series . The difference is between the versions of
sourcepackagename in parent_series and derived_series . |
Create `DistroSeriesDifferenceJob`s between parent and derived series. :param derived_series: A `DistroSeries` that is assumed to be derived from another one. :param parent_series: A `DistroSeries` that is a parent of `derived_series`. :return: A list of newly-created `DistributionJob` ids.
DistroSeriesDifference
jobs on a package.Use this to determine whether to create a new
DistroSeriesDifferenceJob
. The answer may possibly be
conservatively wrong: the check is really only to save the job
runner some unnecessary work, but we don't expect a bit of
unnecessary work to be a big problem.