Celery is leaving an ever increasing number of queues behind
Bug #1015667 reported by
Liam Young
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Unassigned |
Bug Description
Celery appears to be leaving an ever increasing number of anonymous (no descriptive prefix) queues in rabbit. https:/
I have spoken to able and he believes the queues with names that are pure hex digits are celery related. They are created for each running job; they should be deleted when the jobs finish. Looks like a bad config if the queues stay around and they all have a pending message.
Related branches
lp:~adeuring/lazr.jobrunner/bug-1015667
Merged
into
lp:lazr.jobrunner
- Richard Harding (community): Approve
-
Diff: 259 lines (+181/-6)4 files modifiedsetup.py (+6/-3)
src/lazr/jobrunner/bin/inspect_queues.py (+64/-0)
src/lazr/jobrunner/celerytask.py (+15/-3)
src/lazr/jobrunner/tests/test_celerytask.py (+96/-0)
lp:~adeuring/launchpad/bug-1015667
- Richard Harding (community): Approve
-
Diff: 93 lines (+38/-2)3 files modifiedlib/lp/services/job/runner.py (+26/-1)
lib/lp/services/job/tests/test_runner.py (+11/-0)
versions.cfg (+1/-1)
lp:~adeuring/lazr.jobrunner/bug1015667-2
- Aaron Bentley (community): Approve
-
Diff: 199 lines (+61/-37)5 files modifiedsrc/lazr/jobrunner/celerytask.py (+4/-3)
src/lazr/jobrunner/tests/config1.py (+1/-4)
src/lazr/jobrunner/tests/config_do_not_create_missing_queues.py (+2/-0)
src/lazr/jobrunner/tests/simple_config.py (+4/-0)
src/lazr/jobrunner/tests/test_celerytask.py (+50/-30)
lp:~adeuring/launchpad/bug-1015667-2
- Abel Deuring (community): Approve
-
Diff: 12 lines (+1/-1)1 file modifiedversions.cfg (+1/-1)
lp:~adeuring/launchpad/bug-1015667-3
- Benji York (community): Approve (code)
-
Diff: 265 lines (+117/-23)7 files modifiedlib/lp/services/config/schema-lazr.conf (+7/-1)
lib/lp/services/job/celeryconfig.py (+5/-1)
lib/lp/services/job/celeryjob.py (+32/-14)
lib/lp/services/job/runner.py (+1/-1)
lib/lp/services/job/tests/test_celery_configuration.py (+2/-1)
lib/lp/services/job/tests/test_celeryjob.py (+69/-4)
lib/lp/services/job/tests/test_runner.py (+1/-1)
lp:~abentley/launchpad/restore-queue-test
- Richard Harding (community): Approve
-
Diff: 289 lines (+125/-24)8 files modifiedlib/lp/services/config/schema-lazr.conf (+7/-1)
lib/lp/services/job/celeryconfig.py (+5/-1)
lib/lp/services/job/celeryjob.py (+32/-14)
lib/lp/services/job/runner.py (+1/-1)
lib/lp/services/job/tests/celery_helpers.py (+12/-1)
lib/lp/services/job/tests/test_celery_configuration.py (+2/-1)
lib/lp/services/job/tests/test_celeryjob.py (+65/-4)
lib/lp/services/job/tests/test_runner.py (+1/-1)
Changed in launchpad: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in launchpad: | |
assignee: | nobody → Abel Deuring (adeuring) |
status: | Triaged → In Progress |
tags: |
added: qa-ok removed: qa-needstesting |
tags: |
added: bad-commit-15656 qa-bad removed: qa-needstesting |
Changed in launchpad: | |
status: | Fix Committed → In Progress |
Changed in launchpad: | |
assignee: | Abel Deuring (adeuring) → Aaron Bentley (abentley) |
tags: |
added: qa-ok removed: qa-needstesting |
Changed in launchpad: | |
status: | Fix Committed → In Progress |
Changed in launchpad: | |
assignee: | Aaron Bentley (abentley) → nobody |
status: | In Progress → Triaged |
Changed in launchpad: | |
status: | Triaged → Fix Released |
To post a comment you must log in.
They are indeed celeryresults (see below), non-durable with no consumers, yet holding exactly 1 message (smells like roasted celery-s?):
$ sudo rabbitmqctl -p launchpad.net list_queues messages consumers name durable auto_delete |egrep ^1|head -2 3ac73b838dba150 3d false true 79cec76dc65e498 44 false true
1 0 3e99e12763e24f5
1 0 f1b87ef31d864e2
$ sudo rabbitmqctl -p $vhost list_bindings source_name destination_name routing_key|egrep '(3e99|f1b8)'
3e99e12763e24f 53ac73b838dba15 03d 3e99e12763e24f5 3ac73b838dba150 3d
f1b87ef31d864e 279cec76dc65e49 844 f1b87ef31d864e2 79cec76dc65e498 44 3ac73b838dba150 3d 3e99e12763e24f5 3ac73b838dba150 3d 79cec76dc65e498 44 f1b87ef31d864e2 79cec76dc65e498 44
celeryresults 3e99e12763e24f5
celeryresults f1b87ef31d864e2