Allow running Jobs to mark themselves as suspended
Bug #788612 reported by
Julian Edwards
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Julian Edwards |
Bug Description
In some scenarios a job might want to suspend itself after already running. For example, a PackageCopyJob notices that the target distroseries is frozen so it cannot complete yet until an archive admin releases it.
Related branches
lp:~julian-edwards/launchpad/suspend-running-jobs-bug-788612
- Aaron Bentley (community): Approve
-
Diff: 113 lines (+28/-2)5 files modifiedlib/lp/services/job/interfaces/job.py (+6/-0)
lib/lp/services/job/model/job.py (+1/-0)
lib/lp/services/job/runner.py (+5/-0)
lib/lp/services/job/tests/test_job.py (+3/-2)
lib/lp/services/job/tests/test_runner.py (+13/-0)
Changed in launchpad: | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Julian Edwards (julian-edwards) |
tags: | added: derivation |
tags: |
added: qa-untestable removed: qa-needstesting |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
At the top level I think we want to take the job out of the queue
entirely and requeue it when the series is unfrozen.