Skip to content

Commit

Permalink
[core] GO_ERROR if ODC is in ERROR
Browse files Browse the repository at this point in the history
  • Loading branch information
teo committed Aug 16, 2023
1 parent 4d12b1d commit abbf12b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions core/environment/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,17 @@ func (envs *Manager) handleIntegratedServiceEvent(evt event.IntegratedServiceEve
WithError(err).
Error("cannot stop run after ODC_PARTITION_STATE_CHANGE ERROR event")
}

if env.CurrentState() != "ERROR" {
err = env.TryTransition(NewGoErrorTransition(envs.taskman))
if err != nil {
log.WithPrefix("scheduler").
WithField("partition", envId.String()).
WithError(err).
Error("environment GO_ERROR transition failed after ODC_PARTITION_STATE_CHANGE ERROR event")
}
env.setState("ERROR")
}
}()
}
}
Expand Down

0 comments on commit abbf12b

Please sign in to comment.