mirror of https://github.com/zulip/zulip.git
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:
parent
2b2ee686f3
commit
b8f53ab6e8
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue