From ef7ba667b91a2af8857fd61c4ed802160aa852b0 Mon Sep 17 00:00:00 2001 From: Matt Toohey Date: Tue, 12 Mar 2024 10:52:56 +1100 Subject: [PATCH] show reserved runners in process list --- backend/controller/sql/queries.sql | 2 +- backend/controller/sql/queries.sql.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/controller/sql/queries.sql b/backend/controller/sql/queries.sql index 0bba950d0b..0a72d5910d 100644 --- a/backend/controller/sql/queries.sql +++ b/backend/controller/sql/queries.sql @@ -162,7 +162,7 @@ SELECT d.min_replicas, r.endpoint, r.labels AS runner_labels FROM deployments d - LEFT JOIN runners r on d.id = r.deployment_id AND r.state = 'assigned' + LEFT JOIN runners r on d.id = r.deployment_id AND r.state != 'dead' WHERE d.min_replicas > 0 ORDER BY d.name; diff --git a/backend/controller/sql/queries.sql.go b/backend/controller/sql/queries.sql.go index dad5817393..edb0b58296 100644 --- a/backend/controller/sql/queries.sql.go +++ b/backend/controller/sql/queries.sql.go @@ -750,7 +750,7 @@ SELECT d.min_replicas, r.endpoint, r.labels AS runner_labels FROM deployments d - LEFT JOIN runners r on d.id = r.deployment_id AND r.state = 'assigned' + LEFT JOIN runners r on d.id = r.deployment_id AND r.state != 'dead' WHERE d.min_replicas > 0 ORDER BY d.name `