Skip to content

Commit

Permalink
handle EPhaseTimedout -> NodeExecution_TIMED_OUT mapping when creatin…
Browse files Browse the repository at this point in the history
…g node execution events

Signed-off-by: Paul Dittamo <[email protected]>
  • Loading branch information
pvditt committed Jan 24, 2024
1 parent 8963b73 commit 0037b29
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flytepropeller/pkg/controller/nodes/transformers.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ func ToNodeExecEventPhase(p handler.EPhase) core.NodeExecution_Phase {
return core.NodeExecution_FAILED
case handler.EPhaseRecovered:
return core.NodeExecution_RECOVERED
case handler.EPhaseTimedout:
return core.NodeExecution_TIMED_OUT

Check warning on line 73 in flytepropeller/pkg/controller/nodes/transformers.go

View check run for this annotation

Codecov / codecov/patch

flytepropeller/pkg/controller/nodes/transformers.go#L72-L73

Added lines #L72 - L73 were not covered by tests
default:
return core.NodeExecution_UNDEFINED
}
Expand Down

0 comments on commit 0037b29

Please sign in to comment.