Skip to content

Instantly share code, notes, and snippets.

@kyhau
Created March 1, 2016 10:29
Show Gist options
  • Save kyhau/4e11c895754149d32f18 to your computer and use it in GitHub Desktop.
Save kyhau/4e11c895754149d32f18 to your computer and use it in GitHub Desktop.
Celery and Rabbitmq

Celery and Rabbitmq

How to config Celery with rabbitmq to creates one queue instead of multiple queues?

When you use amqp as result backend, it will create a new temporary queue for every result corresponding to each tasks that worker consumes. If you are not interested in the result, you can try CELERY_IGNORE_RESULT = True setting.

The temporary queue will last for 24 hours by default. You can try setting CELERY_TASK_RESULT_EXPIRES= for that.

For details see ext-link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment