mirror of
https://github.com/frappe/bench.git
synced 2025-01-09 16:36:25 +00:00
[fix] enable soft-time-limit for celery
This commit is contained in:
parent
5d33ec4230
commit
c5e0789538
@ -8,33 +8,33 @@ user={{ user }}
|
|||||||
directory={{ sites_dir }}
|
directory={{ sites_dir }}
|
||||||
|
|
||||||
[program:frappe-worker]
|
[program:frappe-worker]
|
||||||
command={{ bench_dir }}/env/bin/python -m frappe.celery_app worker -n jobs@%%h --time-limit 360 --loglevel INFO -Ofair
|
command={{ bench_dir }}/env/bin/python -m frappe.celery_app worker -n jobs@%%h --soft-time-limit 360 --time-limit 390 --loglevel INFO -Ofair
|
||||||
autostart=true
|
autostart=true
|
||||||
autorestart=true
|
autorestart=true
|
||||||
stdout_logfile={{ bench_dir }}/logs/worker.log
|
stdout_logfile={{ bench_dir }}/logs/worker.log
|
||||||
stderr_logfile={{ bench_dir }}/logs/worker.error.log
|
stderr_logfile={{ bench_dir }}/logs/worker.error.log
|
||||||
user={{ user }}
|
user={{ user }}
|
||||||
stopwaitsecs=370
|
stopwaitsecs=400
|
||||||
directory={{ sites_dir }}
|
directory={{ sites_dir }}
|
||||||
|
|
||||||
[program:frappe-longjob-worker]
|
[program:frappe-longjob-worker]
|
||||||
command={{ bench_dir }}/env/bin/python -m frappe.celery_app worker -n longjobs@%%h --time-limit 1500 --loglevel INFO
|
command={{ bench_dir }}/env/bin/python -m frappe.celery_app worker -n longjobs@%%h --soft-time-limit 1500 --time-limit 1530 --loglevel INFO
|
||||||
autostart=true
|
autostart=true
|
||||||
autorestart=true
|
autorestart=true
|
||||||
stdout_logfile={{ bench_dir }}/logs/worker.log
|
stdout_logfile={{ bench_dir }}/logs/worker.log
|
||||||
stderr_logfile={{ bench_dir }}/logs/worker.error.log
|
stderr_logfile={{ bench_dir }}/logs/worker.error.log
|
||||||
user={{ user }}
|
user={{ user }}
|
||||||
stopwaitsecs=1510
|
stopwaitsecs=1540
|
||||||
directory={{ sites_dir }}
|
directory={{ sites_dir }}
|
||||||
|
|
||||||
[program:frappe-async-worker]
|
[program:frappe-async-worker]
|
||||||
command={{ bench_dir }}/env/bin/python -m frappe.celery_app worker -n async@%%h --time-limit 1500 --loglevel INFO
|
command={{ bench_dir }}/env/bin/python -m frappe.celery_app worker -n async@%%h --soft-time-limit 1500 --time-limit 1530 --loglevel INFO
|
||||||
autostart=true
|
autostart=true
|
||||||
autorestart=true
|
autorestart=true
|
||||||
stdout_logfile={{ bench_dir }}/logs/worker.log
|
stdout_logfile={{ bench_dir }}/logs/worker.log
|
||||||
stderr_logfile={{ bench_dir }}/logs/worker.error.log
|
stderr_logfile={{ bench_dir }}/logs/worker.error.log
|
||||||
user={{ user }}
|
user={{ user }}
|
||||||
stopwaitsecs=1510
|
stopwaitsecs=1540
|
||||||
directory={{ sites_dir }}
|
directory={{ sites_dir }}
|
||||||
|
|
||||||
[program:frappe-workerbeat]
|
[program:frappe-workerbeat]
|
||||||
|
Loading…
Reference in New Issue
Block a user