Running Celery with Django on Debian production server under user that can't write in project' dir, but while initialization celery beat needs to create file to store pid (celerybeat.pid).
> File
> "/webapps/bookingsoft2016/lib/python3.5/site-packages/celery/platforms.py",
> line 213, in write_pid
> pidfile_fd = os.open(self.path, PIDFILE_FLAGS, PIDFILE_MODE) celery.platforms.LockFailed: [Errno 13] Permission denied:
> '/path_to_project/celerybeat.pid'
How can I change location of that file?
--pidfile=/var/run/celery/celerybeat.pid - doesn't seems to work
Or any other solution to avoid this?
Thanks