Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion 7 executor/eventloop.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ func eventLoop(state *internalState, decoder encoding.Decoder, h events.Handler)
case e := <-eventCh:
log.Trace("EVENT LOOP about to handle event")
err = h.HandleEvent(ctx, &e)
// if we get an error here we are stoping the eventloop before triggering another nextEventNotify
// so it won't get stuck on eventCh, errorCh
if err != nil {
break
}

// Spawn a goroutine to wait for the next event
go nextEventNotify(decoder, eventCh, errorCh)
Expand Down Expand Up @@ -100,7 +105,7 @@ 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 {
//Originally state.shouldQuit = true but we want to keep the executor running
// 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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.