diff --git a/bench/templates/supervisor.conf b/bench/templates/supervisor.conf index 42a7a95a..ecd517b6 100644 --- a/bench/templates/supervisor.conf +++ b/bench/templates/supervisor.conf @@ -1,5 +1,6 @@ ; Notes: -; Lower priorities indicate programs that start first and shut down last at startup and when aggregate commands are used +; priority=1 --> Lower priorities indicate programs that start first and shut down last +; killasgroup=true --> send kill signal to child processes too [program:frappe-web] command={{ bench_dir }}/env/bin/gunicorn -b 127.0.0.1:8000 -w 2 -t {{http_timeout}} frappe.app:application @@ -21,6 +22,7 @@ stderr_logfile={{ bench_dir }}/logs/worker.error.log user={{ user }} stopwaitsecs=400 directory={{ sites_dir }} +killasgroup=true [program:frappe-longjob-worker] command={{ bench_dir }}/env/bin/python -m frappe.celery_app worker -n longjobs@%%h --soft-time-limit 1500 --time-limit 1530 --loglevel INFO @@ -32,6 +34,7 @@ stderr_logfile={{ bench_dir }}/logs/worker.error.log user={{ user }} stopwaitsecs=1540 directory={{ sites_dir }} +killasgroup=true [program:frappe-async-worker] command={{ bench_dir }}/env/bin/python -m frappe.celery_app worker -n async@%%h --soft-time-limit 1500 --time-limit 1530 --loglevel INFO @@ -43,6 +46,7 @@ stderr_logfile={{ bench_dir }}/logs/worker.error.log user={{ user }} stopwaitsecs=1540 directory={{ sites_dir }} +killasgroup=true [program:frappe-workerbeat] command={{ bench_dir }}/env/bin/python -m frappe.celery_app beat -s beat.schedule