Deleting all pending tasks in celery / rabbitmq

nabizan picture nabizan · Aug 22, 2011 · Viewed 122.9k times · Source

How can I delete all pending tasks without knowing the task_id for each task?

Answer

Philip Southam picture Philip Southam · Aug 23, 2011

From the docs:

$ celery -A proj purge

or

from proj.celery import app
app.control.purge()

(EDIT: Updated with current method.)