我有一个django应用程序,也使用cerlery和芹菜也创建了一个.pid文件,但如果我重新启动我的应用程序与对接-组成芹菜无法启动,因为容器内的旧.pid文件没有被删除,我能做什么来解决这个问题?在linux端(Debian9)有没有办法在容器重启或关机时删除文件?
我的docker配置的代码片段:
celery:
image: echo_echo
command: bash -c "celery worker -A echo -l INFO --pidfile="/tmp/celery/celery.pid" "
volumes:
- echo:/echo
...感谢br
发布于 2019-03-21 03:43:13
修复了这个问题后,我简单地添加了(pid)文件,如下所示:
--pidfile= --schedule=/var/run/celerybeat-schedule
and also for the worker(s):
--pidfile= --schedule=/var/run/celery-schedulehttps://stackoverflow.com/questions/55268113
复制相似问题