Deleting all pending tasks in celery / rabbitmq
问题 How can I delete all pending tasks without knowing the task_id for each task? 回答1: From the docs: $ celery -A proj purge or from proj.celery import app app.control.purge() (EDIT: Updated with current method.) 回答2: For celery 3.0+: $ celery purge To purge a specific queue: $ celery -Q queue_name purge 回答3: For Celery 2.x and 3.x: When using worker with -Q parameter to define queues, for example celery worker -Q queue1,queue2,queue3 then celery purge will not work, because you cannot pass the