2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-11 15:51:03 +00:00

[fix] added longjob worker in supervisor.conf

This commit is contained in:
Anand Doshi 2016-02-01 14:41:41 +05:30
parent 60998dc4b7
commit 3604ccf125

View File

@ -8,12 +8,23 @@ user={{ user }}
directory={{ sites_dir }}
[program:frappe-worker]
command={{ bench_dir }}/env/bin/python -m frappe.celery_app worker
command={{ bench_dir }}/env/bin/python -m frappe.celery_app worker -n frappe-jobs@%%h --time-limit 360 --loglevel INFO -Ofair
autostart=true
autorestart=true
stdout_logfile={{ bench_dir }}/logs/worker.log
stderr_logfile={{ bench_dir }}/logs/worker.error.log
user={{ user }}
stopwaitsecs=370
directory={{ sites_dir }}
[program:frappe-longjob-worker]
command={{ bench_dir }}/env/bin/python -m frappe.celery_app worker -n frappe-longjobs@%%h --time-limit 1500 --loglevel INFO
autostart=true
autorestart=true
stdout_logfile={{ bench_dir }}/logs/worker.log
stderr_logfile={{ bench_dir }}/logs/worker.error.log
user={{ user }}
stopwaitsecs=1510
directory={{ sites_dir }}
[program:frappe-workerbeat]