From 20db518a70f43cb1dbba1656f74515e2b466d203 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Thu, 12 Oct 2023 13:02:14 +0200 Subject: [PATCH] [executor] Keep executor alive even with no tasks --- executor/eventloop.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/executor/eventloop.go b/executor/eventloop.go index 54f2d409d..3c19ed251 100644 --- a/executor/eventloop.go +++ b/executor/eventloop.go @@ -100,7 +100,8 @@ func sendFailedTasks(state *internalState) { delete(state.failedTasks, taskID) // If there aren't any failed and active tasks, we request to shutdown the executor. if len(state.failedTasks) == 0 && len(state.activeTasks) == 0 { - state.shouldQuit = true + //Originally state.shouldQuit = true but we want to keep the executor running + log.WithField("executorId", state.executor.ExecutorID).Info("task failure notified, no tasks present on executor") } } }