Skip to content

Commit

Permalink
[executor] Keep executor alive even with no tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
teo committed Oct 12, 2023
1 parent 09f433f commit 20db518
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion executor/eventloop.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}
}
Expand Down

0 comments on commit 20db518

Please sign in to comment.