2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-12 00:06:36 +00:00

[fix] change supervisor restart sequence to workers then web

This commit is contained in:
Anand Doshi 2016-05-26 16:25:56 +05:30
parent c8989775ad
commit e857c6d9cf

View File

@ -304,7 +304,7 @@ def restart_supervisor_processes(bench='.'):
supervisor_status = subprocess.check_output(['sudo', 'supervisorctl', 'status'], cwd=bench)
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
elif '{bench_name}-processes:'.format(bench_name=bench_name) in supervisor_status: