Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using celery 4 without Redis

Tags:

python

celery

My site write with django. I need to run some task in the background of container(I using ec2). Recently, I research Celery. But, it required redis or queue server to run. It makes I cannot using celery because I mustn't install something else. Question: Can I setup celery stand alone? If yes, how to do this? If no, Are we have any alternative, which can install stand alone?

like image 551
Trần Lữ Sinh Avatar asked Jun 12 '26 07:06

Trần Lữ Sinh


1 Answers

The answer is - no, you cannot use Celery without a broker (Redis, RabbitMQ, or any other from the list of supported brokers).

I am not aware of a service that does both (queue management AND execution environment for your tasks). Best services follow the UNIX paradigm - "do one thing, and do it right". Service you described above would have to do two different, non-trivial things and that is probably why most likely such service does not exist (at least not in the Python world).

like image 170
DejanLekic Avatar answered Jun 13 '26 22:06

DejanLekic