Skip to content

Commit

Permalink
fix: check whether supervisorctl exists before trying to restart
Browse files Browse the repository at this point in the history
Resolves #1607

Signed-off-by: Akhil Narang <[email protected]>
  • Loading branch information
akhilnarang committed Jan 7, 2025
1 parent 4c6ce63 commit 01a3bf4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bench/utils/bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,9 @@ def patch_sites(bench_path="."):


def restart_supervisor_processes(bench_path=".", web_workers=False, _raise=False):
if which("supervisorctl") is None:
return

from bench.bench import Bench

bench = Bench(bench_path)
Expand Down

0 comments on commit 01a3bf4

Please sign in to comment.