X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/402ff8830378ed95de69201b1f97718fad2eec5d..cc49ae50f55e14465c700350157478f79fd13d33:/wolnelektury-celery.conf.template diff --git a/wolnelektury-celery.conf.template b/wolnelektury-celery.conf.template new file mode 100644 index 000000000..c5d24a4ca --- /dev/null +++ b/wolnelektury-celery.conf.template @@ -0,0 +1,24 @@ +; ========================================= +; WolneLektury-Celeryd conf for supervisord +; Put this in /etc/supervisor/conf.d +; ========================================= + +[program:%(project_name)s-celery] +command=%(path)s/bin/python %(path)s/releases/current/%(project_name)s/manage.py celeryd --loglevel=INFO +directory=%(path)s/releases/current/%(project_name)s +user=%(user)s +numprocs=2 +process_name=wolnelektury-celery-%%(process_num) +stdout_logfile=%(path)s/celeryd.log +stderr_logfile=%(path)s/celeryd.log +autostart=true +autorestart=true +startsecs=10 + +; Need to wait for currently executing tasks to finish at shutdown. +; Increase this if you have very long running tasks. +stopwaitsecs = 600 + +; if rabbitmq is supervised, set its priority higher +; so it starts first +priority=998