Disable pidfile for celerybeat

bradley.ayers picture bradley.ayers · Jun 4, 2012 · Viewed 8.6k times · Source

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.

Answer

Michael Waterfall picture Michael Waterfall · Jul 16, 2013

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= (an empty string as the pidfile arg) seems to stop one being created.