Added CLEANUP=false to disable swarm cleanup in general. Use autodiscovery instead

This commit is contained in:
Frikky
2025-08-29 13:53:27 +02:00
parent 10215e0e56
commit a8dc56daa5
+4
View File
@@ -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.