本文介绍了禁用celerybeat的pidfile的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
celeryd
不需要pidfile,但是 celerybeat
似乎需要。有什么办法可以禁用它吗?我正在使用Upstart来管理进程,因此使用pidfile是多余的。
celeryd
doesn't require a pidfile, but celerybeat
seems to. Is there any way to disable it? I'm using Upstart to manage processes so using a pidfile is redundant.
推荐答案
以下内容似乎对一些人有用所以我将其提交为答案:
The following seems to have worked for a few people so I'm submitting it as the answer:
python manage.py celerybeat --pidfile= --schedule=/var/my_app/celerybeat-schedule
-pidfile =
(空文件为pidfile arg)似乎阻止了该文件的创建。
--pidfile=
(an empty string as the pidfile arg) seems to stop one being created.
这篇关于禁用celerybeat的pidfile的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!