From b8f53ab6e8c7c9e48226c4a77ace35c9bf4705c2 Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Fri, 12 May 2023 18:13:13 +0000 Subject: [PATCH] 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. --- scripts/lib/supervisor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/lib/supervisor.py b/scripts/lib/supervisor.py index a3cf445f66..3b0c1b7611 100644 --- a/scripts/lib/supervisor.py +++ b/scripts/lib/supervisor.py @@ -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