在我的主管文件中,我将 .%h
添加到我的工作人员名称 (celery) 的末尾,以使其独一无二。例如:
[program:celery_worker]
directory = /srv/project/
command=celery -A tasks worker -l info -n default.%h
但是,由于添加了此变更主管,将不再更新或开始报错:
, "CANT_REREAD: Format string 'celery -A tasks worker -l info -n default.%h' for 'command' is badly formatted""> file: /usr/lib/python2.7/dist-packages/supervisor/supervisorctl.py line: 947
我该如何解决这个问题?
最佳答案
这是一个未被充分记录的问题:https://github.com/Supervisor/supervisor/issues/291
只需再次使用 %
来转义它:
command=celery -A tasks worker -l info -n default.%%h
关于python - CANT_REREAD : Format string in Celery . %h,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28606613/