How do I override the backend for celery tasks
问题 we're using Redis as our result backend. However for one task we'd like to override this to use RabbitMQ instead. The documentation for Task.backend says: The result store backend to use for this task. Defaults to the CELERY_RESULT_BACKEND setting So I had assumed that we could set Task.backend to a string of the same format accepted by CELERY_RESULT_BACKEND . So I try this: celeryconfig.py CELERY_RESULT_BACKEND = "redis://redis-host:7777" tasks.py @app.task(backend='amqp://guest@localhost