How to run celery on windows?

前端 未结 10 1016
逝去的感伤
逝去的感伤 2020-11-27 16:13

How to run celery worker on Windows without creating Windows Service? Is there any analogy to $ celery -A your_application worker?

10条回答
  •  佛祖请我去吃肉
    2020-11-27 16:57

    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.

提交回复
热议问题