From e5256f1e4ee5466c0a961fe691df7dc9d369413f Mon Sep 17 00:00:00 2001 From: NathanFlurry Date: Sat, 1 Jun 2024 08:34:01 +0000 Subject: [PATCH] fix(cluster): don't taint servers that have cloud_destroy_ts (#839) ## Changes --- svc/pkg/cluster/worker/src/workers/server_taint.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/svc/pkg/cluster/worker/src/workers/server_taint.rs b/svc/pkg/cluster/worker/src/workers/server_taint.rs index f1b30327ec..e3ec0206a9 100644 --- a/svc/pkg/cluster/worker/src/workers/server_taint.rs +++ b/svc/pkg/cluster/worker/src/workers/server_taint.rs @@ -60,6 +60,7 @@ async fn worker(ctx: &OperationContext) -> WHERE s.datacenter_id = d.datacenter_id AND s.taint_ts IS NULL + AND s.cloud_destroy_ts IS NULL AND ($2 IS NULL OR s.server_id = ANY($2)) AND ($3 IS NULL OR d.cluster_id = ANY($3)) AND ($4 IS NULL OR s.datacenter_id = ANY($4))