supervisor: Include STARTING processes in 'only_running' processes.

Because `STARTING` processes are on their way up, they should
effectively be counted as `RUNNING`, since the passage of time will
make them so.
This commit is contained in:
Alex Vandiver 2023-05-12 18:13:13 +00:00 committed by Tim Abbott
parent 2b2ee686f3
commit b8f53ab6e8
1 changed files with 2 additions and 1 deletions

View File

@ -56,6 +56,7 @@ def list_supervisor_processes(
if only_running is None: if only_running is None:
results.append(name) results.append(name)
elif only_running == (process["statename"] == "RUNNING"): elif only_running == (process["statename"] in ("RUNNING", "STARTING")):
results.append(name) results.append(name)
return results return results