Skip to content

Commit

Permalink
Merge pull request #1614 from akhilnarang/check-supervisorctl
Browse files Browse the repository at this point in the history
fix: check whether `supervisorctl` exists before trying to restart
  • Loading branch information
akhilnarang authored Jan 7, 2025
2 parents 4c6ce63 + 01a3bf4 commit 431cc78
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 431cc78

Please sign in to comment.