Skip to content

Commit a76cc33

Browse files
knopers8teo
authored andcommitted
[OCTRL-683][executor] ERROR should not be the last state
Since we aim to transition from ERROR to DONE, we cannot stop the loop when we reach ERROR. KILL_TRANSITION_TIMEOUT should protect us from being stuck in ERROR forever (in case we fail to get to DONE).
1 parent ae656ef commit a76cc33

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

executor/executable/controllabletask.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -683,8 +683,7 @@ func (t *ControllableTask) Kill() error {
683683
return
684684
}
685685

686-
for reachedState != "DONE" &&
687-
reachedState != "ERROR" {
686+
for reachedState != "DONE" {
688687
cmd := nextTransition(reachedState)
689688
log.WithField("partition", t.knownEnvironmentId.String()).
690689
WithField("detector", t.knownDetector).

0 commit comments

Comments
 (0)