Celery is leaving an ever increasing number of queues behind

Bug #1015667 reported by Liam Young
12
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://pastebin.canonical.com/68543/

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

Changed in launchpad:
status: New → Triaged
importance: Undecided → High
Abel Deuring (adeuring)
Changed in launchpad:
assignee: nobody → Abel Deuring (adeuring)
status: Triaged → In Progress
Revision history for this message
JuanJo Ciarlante (jjo) wrote :

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
1 0 3e99e12763e24f53ac73b838dba1503d false true
1 0 f1b87ef31d864e279cec76dc65e49844 false true

$ sudo rabbitmqctl -p $vhost list_bindings source_name destination_name routing_key|egrep '(3e99|f1b8)'
        3e99e12763e24f53ac73b838dba1503d 3e99e12763e24f53ac73b838dba1503d
        f1b87ef31d864e279cec76dc65e49844 f1b87ef31d864e279cec76dc65e49844
celeryresults 3e99e12763e24f53ac73b838dba1503d 3e99e12763e24f53ac73b838dba1503d
celeryresults f1b87ef31d864e279cec76dc65e49844 f1b87ef31d864e279cec76dc65e49844

Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
Revision history for this message
Abel Deuring (adeuring) wrote :

The merged branch just allows us to get better details about the queues and why they were created.

Changed in launchpad:
status: Fix Committed → In Progress
William Grant (wgrant)
tags: added: qa-ok
removed: qa-needstesting
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
removed: qa-ok
Changed in launchpad:
status: In Progress → Fix Committed
Revision history for this message
Abel Deuring (adeuring) wrote :

still not fixed but there is some progress: we can seen now some more details about the Celery jobs

Changed in launchpad:
status: Fix Committed → In Progress
tags: added: qa-ok
removed: qa-needstesting
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
removed: qa-ok
Changed in launchpad:
status: In Progress → Fix Committed
William Grant (wgrant)
tags: added: bad-commit-15656 qa-bad
removed: qa-needstesting
William Grant (wgrant)
Changed in launchpad:
status: Fix Committed → In Progress
Aaron Bentley (abentley)
Changed in launchpad:
assignee: Abel Deuring (adeuring) → Aaron Bentley (abentley)
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
removed: qa-bad
Changed in launchpad:
status: In Progress → Fix Committed
Aaron Bentley (abentley)
tags: added: qa-ok
removed: qa-needstesting
William Grant (wgrant)
Changed in launchpad:
status: Fix Committed → In Progress
Revision history for this message
David Ames (thedac) wrote :

All the hashed queues had the following paramters:
AD
x-expires=86400000
Last Update: 2012-07-05 14:24:27

Curtis Hovey (sinzui)
Changed in launchpad:
assignee: Aaron Bentley (abentley) → nobody
status: In Progress → Triaged
William Grant (wgrant)
Changed in launchpad:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.