From a8dc56daa563f39d127099b75e381e6e65cb1a47 Mon Sep 17 00:00:00 2001 From: Frikky Date: Fri, 29 Aug 2025 13:53:27 +0200 Subject: [PATCH] Added CLEANUP=false to disable swarm cleanup in general. Use autodiscovery instead --- functions/onprem/orborus/orborus.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/functions/onprem/orborus/orborus.go b/functions/onprem/orborus/orborus.go index 49a0ac59..6e90bcd3 100755 --- a/functions/onprem/orborus/orborus.go +++ b/functions/onprem/orborus/orborus.go @@ -218,6 +218,10 @@ func skipCheckInCleanup(name string) bool { } func cleanupExistingNodes(ctx context.Context) error { + if cleanupEnv == "false" { + log.Printf("[INFO] Skipping cleanup of existing workers as CLEANUP is set to false. This should be auto-discovered during executions then instead.") + return nil + } if isKubernetes == "true" { // Cleanup all workers created by orborus and all apps created by workers.