Skip to content

Commit 20db518

Browse files
committed
[executor] Keep executor alive even with no tasks
1 parent 09f433f commit 20db518

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

executor/eventloop.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ func sendFailedTasks(state *internalState) {
100100
delete(state.failedTasks, taskID)
101101
// If there aren't any failed and active tasks, we request to shutdown the executor.
102102
if len(state.failedTasks) == 0 && len(state.activeTasks) == 0 {
103-
state.shouldQuit = true
103+
//Originally state.shouldQuit = true but we want to keep the executor running
104+
log.WithField("executorId", state.executor.ExecutorID).Info("task failure notified, no tasks present on executor")
104105
}
105106
}
106107
}

0 commit comments

Comments
 (0)