To remove all the pending tasks in Celery and RabbitMQ, you can follow these steps:
Stop Celery workers:
celery multi stop <worker_name> -A <app_name>
Purge the RabbitMQ queue:
celery -A <app_name> purge
This will remove all the messages from the RabbitMQ queue.
Restart the Celery workers:
celery multi start <worker_name> -A <app_name>
After following these steps, all the pending tasks in Celery and RabbitMQ should be removed.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2023-03-29 11:00:00 +0000
Seen: 8 times
Last updated: Sep 12 '21
How can all log messages from the celery tasks be directed to a single file?
What is causing fs.readFileSync() to restrict the number of simultaneous tasks in node.js?
How can the DAG tasks running speed be improved while using KubernetesExecutor for airflow?
Can a task be performed following the completion of one or more other tasks?
How does concurrency work with Node.js Promises?
How can GUI usage on windows for an ERP program be automated?
What steps should I take to execute the sample code concurrently?