Skip to content

Commit

Permalink
[core] Fix crash in executor/agent failed handler in task manager
Browse files Browse the repository at this point in the history
  • Loading branch information
teo committed Oct 2, 2023
1 parent c316315 commit cb780fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/task/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -1228,7 +1228,10 @@ func (m *Manager) HandleExecutorFailed(e *event.ExecutorFailedEvent) map[uid.ID]
go func() {
m.updateTaskState(thisTask.taskId, "ERROR")
thisTask.status = INACTIVE
thisTask.GetParent().UpdateStatus(INACTIVE)
taskParent := thisTask.GetParent()
if taskParent != nil {
thisTask.GetParent().UpdateStatus(INACTIVE)
}
}()
}
return envIdsForExecutor
Expand Down

0 comments on commit cb780fa

Please sign in to comment.