Skip to content

Commit

Permalink
ClearSubNodeStatus on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-Newton committed Nov 13, 2023
1 parent 886b49d commit 3b79086
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flytepropeller/pkg/controller/nodes/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -1320,6 +1320,7 @@ func (c *nodeExecutor) HandleNode(ctx context.Context, dag executors.DAGStructur
if err := c.Abort(ctx, h, nCtx, "node failing", false); err != nil {
return interfaces.NodeStatusUndefined, err
}
nodeStatus.ClearSubNodeStatus()
nodeStatus.UpdatePhase(v1alpha1.NodePhaseFailed, metav1.Now(), nodeStatus.GetMessage(), nodeStatus.GetExecutionError())
c.metrics.FailureDuration.Observe(ctx, nodeStatus.GetStartedAt().Time, nodeStatus.GetStoppedAt().Time)
if nCtx.NodeExecutionMetadata().IsInterruptible() {
Expand Down

0 comments on commit 3b79086

Please sign in to comment.