mirror of
https://github.com/frappe/bench.git
synced 2025-01-27 00:08:24 +00:00
[fix] change supervisor restart sequence to workers then web
This commit is contained in:
parent
c8989775ad
commit
e857c6d9cf
@ -304,7 +304,7 @@ def restart_supervisor_processes(bench='.'):
|
|||||||
supervisor_status = subprocess.check_output(['sudo', 'supervisorctl', 'status'], cwd=bench)
|
supervisor_status = subprocess.check_output(['sudo', 'supervisorctl', 'status'], cwd=bench)
|
||||||
|
|
||||||
if '{bench_name}-workers:'.format(bench_name=bench_name) in supervisor_status:
|
if '{bench_name}-workers:'.format(bench_name=bench_name) in supervisor_status:
|
||||||
group = '{bench_name}-web: {bench_name}-workers:'.format(bench_name=bench_name)
|
group = '{bench_name}-workers: {bench_name}-web:'.format(bench_name=bench_name)
|
||||||
|
|
||||||
# backward compatibility
|
# backward compatibility
|
||||||
elif '{bench_name}-processes:'.format(bench_name=bench_name) in supervisor_status:
|
elif '{bench_name}-processes:'.format(bench_name=bench_name) in supervisor_status:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user