Merge ~twom/launchpad:tasks-some-speedy-some-slow into launchpad:master

Proposed by Tom Wardill
Status: Merged
Approved by: Tom Wardill
Approved revision: fb58fd0d723fd4d6b2de36c7e789dd7e337d9b70
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~twom/launchpad:tasks-some-speedy-some-slow
Merge into: launchpad:master
Diff against target: 119 lines (+59/-4)
4 files modified
lib/lp/services/job/celeryconfig.py (+1/-3)
lib/lp/services/job/celeryjob.py (+4/-0)
lib/lp/services/job/runner.py (+7/-1)
lib/lp/services/job/tests/test_celery.py (+47/-0)
Reviewer Review Type Date Requested Status
Colin Watson (community) Approve
Review via email: mp+402919@code.staging.launchpad.net

Commit message

Enable slow lane fallback in celery

Description of the change

* Use the correct key
* Don't re-queue the same task _and_ the slow lane task
* Add a test to ensure we're queueing correctly

To post a comment you must log in.
Revision history for this message
Colin Watson (cjwatson) :
review: Approve
Revision history for this message
Tom Wardill (twom) wrote :

This currently breaks a lot of celery related job tests:

lp.oci.tests.test_ocirecipebuildjob.TestOCIRegistryUploadJobViaCelery.test_run_upload
ValueError: expected txn status 'Active' or 'Doomed', but it's 'Committed'

Revision history for this message
Tom Wardill (twom) wrote :

> This currently breaks a lot of celery related job tests:
>
> lp.oci.tests.test_ocirecipebuildjob.TestOCIRegistryUploadJobViaCelery.test_run
> _upload
> ValueError: expected txn status 'Active' or 'Doomed', but it's 'Committed'

Fixed by not importing celery_app at module level.

There was an error fetching revisions from git servers. Please try again in a few minutes. If the problem persists, contact Launchpad support.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to status/vote changes: