Skip to content

Commit

Permalink
Tweak UpdateWorfklow docs (#1745)
Browse files Browse the repository at this point in the history
  • Loading branch information
dandavison authored Dec 6, 2024
1 parent 9d59447 commit 01b52a2
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -831,14 +831,16 @@ type (
// API. If the check fails, an error is returned.
CheckHealth(ctx context.Context, request *CheckHealthRequest) (*CheckHealthResponse, error)

// UpdateWorkflow issues an update request to the
// specified workflow execution and returns a handle to the update that
// is running in in parallel with the calling thread. Errors returned
// from the server will be exposed through the return value of
// WorkflowUpdateHandle.Get(). Errors that occur before the
// update is requested (e.g. if the required workflow ID field is
// missing from the UpdateWorkflowOptions) are returned
// directly from this function call.
// UpdateWorkflow issues an update request to the specified workflow and
// returns a handle to the update. The call will block until the update
// has reached the WaitForStage in the options. Note that this means
// that the call will not return successfully until the update has been
// delivered to a worker. Errors returned from the update handler or its
// validator will be exposed through the return value of
// WorkflowUpdateHandle.Get(). Errors that occur before the update is
// delivered to the workflow (e.g. if the required workflow ID field is
// missing from the UpdateWorkflowOptions) are returned directly from
// this function call.
//
// The errors it can return:
// - WorkflowUpdateServiceTimeoutOrCanceledError
Expand Down

0 comments on commit 01b52a2

Please sign in to comment.