How to run celery as a daemon in production?

后端 未结 5 1066
再見小時候
再見小時候 2020-12-13 02:58

i created a celeryd file in /etc/defaults/ from the code here:

https://github.com/celery/celery/blob/3.0/extra/generic-init.d/celeryd

Now when I want to run

5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-13 03:21

    I generally use supervisor (plus django-supervisor) for this purpose. That way, you don't need to figure out how to daemonize each process in your application (of which you have at least a webserver hosting django, plus celery, plus realistically whatever other middleware you use to support both of those). Supervisor knows how to run itself as a daemon, and all your other processes run as children of supervisor.

提交回复
热议问题