Skip to content

Commit

Permalink
Flyte node timeout is an usererror (flyteorg#114)
Browse files Browse the repository at this point in the history
* Flyte node timeout is an usererror

* Update executor.go
  • Loading branch information
surindersinghp authored Apr 16, 2020
1 parent 7ba3e89 commit 7028ee3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/controller/nodes/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@ func (c *nodeExecutor) execute(ctx context.Context, h handler.Node, nCtx *nodeEx
}
if c.isTimeoutExpired(nodeStatus.GetLastAttemptStartedAt(), executionDeadline) {
logger.Errorf(ctx, "Current execution for the node timed out; timeout configured: %v", executionDeadline)
phase = handler.PhaseInfoRetryableFailure("TimeoutExpired", fmt.Sprintf("task execution timeout [%s] expired", executionDeadline.String()), nil)
executionErr := &core.ExecutionError{Code: "TimeoutExpired", Message: fmt.Sprintf("task execution timeout [%s] expired", executionDeadline.String()), Kind: core.ExecutionError_USER}
phase = handler.PhaseInfoRetryableFailureErr(executionErr, nil)
}
}

Expand Down

0 comments on commit 7028ee3

Please sign in to comment.