CANT_REREAD:Celery中的格式字符串.%h

Pro*_*eus 4 python django celery supervisord

在我的主管文件中,我已经添加.%h到我的工作人员姓名(芹菜)的末尾,以使它们独一无二.例如:

[program:celery_worker]
directory = /srv/project/
command=celery -A tasks worker -l info -n default.%h
Run Code Online (Sandbox Code Playgroud)

但是,由于添加了此更改主管将不再更新或开始提供错误:

,"CANT_REREAD:格式字符串'celery -A任务worker -l info -n default.%h'for'command'格式错误""> file:/usr/lib/python2.7/dist-packages/supervisor/supervisorctl .py行:947

我该如何解决这个问题?

Cap*_*iel 14

这是一个未被记录的问题:https://github.com/Supervisor/supervisor/issues/291

%再次使用它来逃脱它:

command=celery -A tasks worker -l info -n default.%%h
Run Code Online (Sandbox Code Playgroud)

  • 它在[工人的文档页面]中提到[http://celery.readthedocs.org/en/latest/userguide/workers.html) :) (3认同)