From 225efcc190f1596b1dac7d67081533b1cbd4f48a Mon Sep 17 00:00:00 2001 From: Aditya <60684641+0x0elliot@users.noreply.github.com> Date: Thu, 19 Oct 2023 22:56:55 +0530 Subject: [PATCH] fix: disabling zombiecheck for k8s --- functions/onprem/orborus/orborus.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/functions/onprem/orborus/orborus.go b/functions/onprem/orborus/orborus.go index 7297bc93..ca2cd770 100755 --- a/functions/onprem/orborus/orborus.go +++ b/functions/onprem/orborus/orborus.go @@ -1554,8 +1554,10 @@ func getRunningWorkers(ctx context.Context, workerTimeout int) int { // FIXME - add this to remove exited workers // Should it check what happened to the execution? idk func zombiecheck(ctx context.Context, workerTimeout int) error { + isK8s := os.Getenv("IS_KUBERNETES") == "true" + executionIds = []string{} - if swarmConfig == "run" || swarmConfig == "swarm" { + if swarmConfig == "run" || swarmConfig == "swarm" || isK8s { //log.Printf("[DEBUG] Skipping Zombie check due to new execution model (swarm)") return nil }