l.s.m.p.PlainPackageCopyJob(PackageCopyJobDerived) : class documentation

Part of lp.soyuz.model.packagecopyjob View In Hierarchy

Job that copies a package from one archive to another.
Class Method create See IPlainPackageCopyJobSource.
Class Method createMultiple See IPlainPackageCopyJobSource.
Class Method getActiveJobs See IPlainPackageCopyJobSource.
Class Method getPendingJobsForTargetSeries Get upcoming jobs for target_series, ordered by age.
Class Method getPendingJobsPerPackage See IPlainPackageCopyJobSource.
Class Method getIncompleteJobsForArchive See IPlainPackageCopyJobSource.
Method target_pocket Undocumented
Method include_binaries Undocumented
Method error_message See IPackageCopyJob.
Method sponsored Undocumented
Method unembargo Undocumented
Method auto_approve Undocumented
Method silent Undocumented
Method source_distroseries Undocumented
Method source_pocket Undocumented
Method phased_update_percentage Undocumented
Method requester_can_admin_target Undocumented
Method addSourceOverride Add an ISourceOverride to the metadata.
Method setErrorMessage See IPackageCopyJob.
Method getSourceOverride Fetch an ISourceOverride from the metadata.
Method findSourcePublication Find the appropriate origin ISourcePackagePublishingHistory.
Method notifyOops See IRunnableJob.
Method run See IRunnableJob.
Method attemptCopy Attempt to perform the copy.
Method abort Abort work.
Method findMatchingDSDs Find any `DistroSeriesDifference`s that this job might resolve.
Method reportFailure Attempt to report failure to the user.
Method __repr__ Returns an informative representation of the job.
Method getPolicyImplementation Return the ICopyPolicy applicable to this job.
Class Method _makeMetadata Produce a metadata dict for this job.
Class Method _composeJobInsertionTuple Create an SQL fragment for inserting a job into the database.
Method _createPackageUpload Undocumented
Method _checkPolicies Undocumented
Method _rejectPackageUpload Undocumented

Inherited from PackageCopyJobDerived:

Method __init__ Undocumented
Class Method get Get a job by id.
Class Method iterReady Iterate through all ready PackageCopyJobs.
Method getOopsVars See IRunnableJob.
Method getOperationDescription See IPlainPackageCopyJob.
Method getErrorRecipients See IPlainPackageCopyJob.
Method copy_policy See PlainPackageCopyJob.

Inherited from BaseRunnableJob (via PackageCopyJobDerived):

Method __eq__ Undocumented
Method __ne__ Undocumented
Method __lt__ Undocumented
Method getOopsRecipients Return a list of email-ids to notify about oopses.
Method getOopsMailController Return a MailController for notifying people about oopses.
Method getUserErrorMailController Return a MailController for notifying about user errors.
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 PackageCopyJobDerived, BaseRunnableJob):

Static Method contextManager Undocumented
@classmethod
def _makeMetadata(cls, target_pocket, package_version, include_binaries, sponsored=None, unembargo=False, auto_approve=False, silent=False, source_distroseries=None, source_pocket=None, phased_update_percentage=None):
Produce a metadata dict for this job.
@classmethod
def create(cls, package_name, source_archive, target_archive, target_distroseries, target_pocket, include_binaries=False, package_version=None, copy_policy=PackageCopyPolicy.INSECURE, requester=None, sponsored=None, unembargo=False, auto_approve=False, silent=False, source_distroseries=None, source_pocket=None, phased_update_percentage=None):
See IPlainPackageCopyJobSource.
@classmethod
def _composeJobInsertionTuple(cls, copy_policy, include_binaries, job_id, copy_task, sponsored, unembargo, auto_approve, silent):
Create an SQL fragment for inserting a job into the database.
ReturnsA string representing an SQL tuple containing initializers for a PackageCopyJob in the database (minus id, which is assigned automatically). Contents are escaped for use in SQL.
@classmethod
def createMultiple(cls, copy_tasks, requester, copy_policy=PackageCopyPolicy.INSECURE, include_binaries=False, sponsored=None, unembargo=False, auto_approve=False, silent=False):
See IPlainPackageCopyJobSource.
@classmethod
def getActiveJobs(cls, target_archive):
See IPlainPackageCopyJobSource.
@classmethod
def getPendingJobsForTargetSeries(cls, target_series):
Get upcoming jobs for target_series, ordered by age.
@classmethod
def getPendingJobsPerPackage(cls, target_series):
See IPlainPackageCopyJobSource.
@classmethod
def getIncompleteJobsForArchive(cls, archive):
See IPlainPackageCopyJobSource.
@property
def target_pocket(self):
Undocumented
@property
def include_binaries(self):
Undocumented
@property
def error_message(self):
See IPackageCopyJob.
@property
def sponsored(self):
Undocumented
@property
def unembargo(self):
Undocumented
@property
def auto_approve(self):
Undocumented
@property
def silent(self):
Undocumented
@property
def source_distroseries(self):
Undocumented
@property
def source_pocket(self):
Undocumented
@property
def phased_update_percentage(self):
Undocumented
@property
def requester_can_admin_target(self):
Undocumented
def _createPackageUpload(self, unapproved=False):
Undocumented
def addSourceOverride(self, override):
Add an ISourceOverride to the metadata.
def setErrorMessage(self, message):
See IPackageCopyJob.
def getSourceOverride(self):
Fetch an ISourceOverride from the metadata.
def findSourcePublication(self):
Find the appropriate origin ISourcePackagePublishingHistory.
def _checkPolicies(self, source_name, source_component=None, auto_approve=False):
Undocumented
def _rejectPackageUpload(self):
Undocumented
def notifyOops(self, oops):
See IRunnableJob.
def run(self):
See IRunnableJob.
def attemptCopy(self):
Attempt to perform the copy.
RaisesCannotCopyIf the copy fails for a reason that the user can deal with.
def abort(self):
Abort work.
def findMatchingDSDs(self):
Find any `DistroSeriesDifference`s that this job might resolve.
def reportFailure(self, message):
Attempt to report failure to the user.
def __repr__(self):
Returns an informative representation of the job.
def getPolicyImplementation(self):
Return the ICopyPolicy applicable to this job.
API Documentation for Launchpad, generated by pydoctor at 2019-09-19 00:00:07.