mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 20:44:04 +00:00
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:
committed by
Tim Abbott
parent
2b2ee686f3
commit
b8f53ab6e8
@@ -56,6 +56,7 @@ def list_supervisor_processes(
|
||||
|
||||
if only_running is None:
|
||||
results.append(name)
|
||||
elif only_running == (process["statename"] == "RUNNING"):
|
||||
elif only_running == (process["statename"] in ("RUNNING", "STARTING")):
|
||||
results.append(name)
|
||||
|
||||
return results
|
||||
|
||||
Reference in New Issue
Block a user