~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/soyuz/interfaces/packagecopyjob.py

[r=allenap][no-qa] Add
 PlainPackageCopyJob.getIncompleteJobsForArchive() method which will return
 all the WAITING, RUNNING or FAILED copy jobs for the passed archive.

Show diffs side-by-side

added added

removed removed

Lines of Context:
182
182
            `DistroSeriesDifference.parent_source_version`.
183
183
        """
184
184
 
 
185
    def getIncompleteJobsForArchive(archive):
 
186
        """Find incomplete jobs for each package in `archive`.
 
187
 
 
188
        Incomplete jobs are ones in status WAITING, RUNNING or FAILED.
 
189
 
 
190
        :param archive: The target `IArchive` for the job.
 
191
        :return: An iterable of `PackageCopyJob`.
 
192
        """
 
193
 
185
194
 
186
195
class IPlainPackageCopyJob(IRunnableJob):
187
196
    """A no-frills job to copy packages between `IArchive`s."""