django-celery without an amqp server (rabbitmq)
-
26-09-2019 - |
Question
I am using celery for distributed task processing. I wanted to deploy my work on a web-host, just to show the working of my project. So how can i get djcelery to use a database (sqlalchemy) as backend with django instead of rabbitmq or other amqp servers.
Solution
Here is the Celery docs on "Using Celery with Redis/Database as the messaging queue".
Essentially you need to install ghettoq, add it to your installed apps, add a setting CARROT_BACKEND = "ghettoq.taproot.Database"
and run syncdb. Then magic happens.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow