Skip to content

Commit

Permalink
improve annotation message
Browse files Browse the repository at this point in the history
Signed-off-by: Future Outlier <[email protected]>
  • Loading branch information
Future Outlier committed Dec 20, 2023
1 parent 9d7d494 commit fc9a728
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flyteplugins/go/tasks/plugins/webapi/agent/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func (p Plugin) Create(ctx context.Context, taskCtx webapi.TaskExecutionContextR
resource := ResourceWrapper{State: admin.State_RUNNING}

// If the agent returned a resource, we assume this is a synchronous task.
// The state should be SUCCEEDED, PERMANENT_FAILURE or RETRYABLE_FAILURE.
// The state should be a terminal state, for example, SUCCEEDED, PERMANENT_FAILURE, or RETRYABLE_FAILURE.
if res.GetResource() != nil {
resource.State = res.GetResource().State
resource.Outputs = res.GetResource().Outputs
Expand Down

0 comments on commit fc9a728

Please sign in to comment.