我使用redis作为后端,我有2个虚拟环境,每个都有自己的芹菜工人。
我在添加第二个虚拟环境的芹菜监督文件时遇到了一个奇怪的问题。
这是我重新加载superord后得到的错误:
unix:///var/run/supervisor.sock no such file
这是superord配置文件:
[program:shopify-celery]
command=dir/bin/celery worker --app=app -l warning -Q queue -n worker -P eventlet -c 3
directory=/dir
user=user
group=webapps
numprocs=1
stdout_logfile=/dir/logs/celery-worker.log
stderr_logfile=/dir/logs/celery-worker.log
autostart=true
autorestart=true
startsecs=10
; Need to wait for currently executing tasks to finish at shutdown.
; Increase this if you have very long running tasks.
stopwaitsecs = 600pip freez
; When resorting to send SIGKILL to the program to terminate it
; send SIGKILL to its whole process group instead,
; taking care of its children as well.
;killasgroup=true
; if rabbitmq is supervised, set its priority higher
; so it starts first
;priority=998
我找不到可能导致这个的原因。
你知道哪里出错了吗?
经过几个小时的努力,原来是一个丢失的日志文件做了这一切。我创建了所需的日志文件,现在一切都运行良好。
也许这对别人有帮助