我应该使用 attach-daemon 还是 smart-attach daemon 来使用 UWSGI 自动启动 celery(并轻松更新任务)
Should I use attach-daemon or smart-attach daemon to autostart celery with UWSGI (and easily update the tasks)
首先 - 我知道 UWSGI 建议使用 smart-attach-daemon
来自:http://uwsgi-docs.readthedocs.io/en/latest/AttachingDaemons.html
Managing celery:
[uwsgi]
master = true
socket = :3031
smart-attach-daemon = /tmp/celery.pid celery -A tasks worker --pidfile=/tmp/celery.pid
但是,当我将更新推送到服务器时,Celery 任务似乎没有更新 - 为了实现这一点,我似乎已经做了问题 killall celery
- 它似乎可以通过使用 attach-daemon
改为启动它?
我在这里遗漏了什么吗,有没有比杀死芹菜实例或使用 attach-daemon
更好的解决方案?
您最好使用attach-daemon
,因为smart-attach-daemon
意味着您将自行管理您的智能守护进程。
自 uwsgi 2.0 以来,还有 'attach-daemon2' 具有 touch
选项。
首先 - 我知道 UWSGI 建议使用 smart-attach-daemon
来自:http://uwsgi-docs.readthedocs.io/en/latest/AttachingDaemons.html
Managing celery:
[uwsgi]
master = true
socket = :3031
smart-attach-daemon = /tmp/celery.pid celery -A tasks worker --pidfile=/tmp/celery.pid
但是,当我将更新推送到服务器时,Celery 任务似乎没有更新 - 为了实现这一点,我似乎已经做了问题 killall celery
- 它似乎可以通过使用 attach-daemon
改为启动它?
我在这里遗漏了什么吗,有没有比杀死芹菜实例或使用 attach-daemon
更好的解决方案?
您最好使用attach-daemon
,因为smart-attach-daemon
意味着您将自行管理您的智能守护进程。
自 uwsgi 2.0 以来,还有 'attach-daemon2' 具有 touch
选项。