管理celery beat进程
用supervisor来管理celery beat进程。
安装
pip install supervisor
Supervisor配置
/usr/local/bin/echo_supervisord_conf > /etc/supervisord.conf
操作:
- 开启:supervisord -c /etc/supervisord.conf
- 重启:supervisorctl -c /etc/supervisord.conf reload
- 关闭:supervisorctl -c /etc/supervisord.conf shutdown