How to run celery worker on Windows without creating Windows Service? Is there any analogy to $ celery -A your_application worker
?
Compile Celery with --pool=solo argument.
Example:
celery -A your-application worker -l info --pool=solo
I have run celery task using RabbitMQ server. RabbitMq is better and simple than redis broker
while running celery use this command "celery -A project-name worker --pool=solo -l info" and avoid this command "celery -A project-name worker --loglevel info"
There are two workarounds to make Celery 4 work on Windows:
See https://www.distributedpython.com/2018/08/21/celery-4-windows for more details
I've made a .bat file besides my manage.py file with this code:
title CeleryTask
::See the title at the top.
cd
cmd /k celery -A MainProject worker -l info
so each time I want to run celery, I just double-click this batch file and it runs perfectly. And the fact that you can't use celery 4 on windows is true.