class Temporalio::Client::WorkflowHandle
def execute_update(update, *args, id: SecureRandom.uuid, rpc_options: nil)
- Note: - Handles created as a result of {Client.start_workflow} will send updates the latest workflow with the same
Raises:
-
(Error::RPCError)
- RPC error from call. -
(Error::WorkflowUpdateRPCTimeoutOrCanceledError)
- This update call timed out or was canceled. This doesn't -
(Error::WorkflowUpdateFailedError)
- If the update failed.
Returns:
-
(Object, nil)
- Update result.
Parameters:
-
rpc_options
(RPCOptions, nil
) -- Advanced RPC options. -
id
(String
) -- ID of the update. -
args
(Array
) -- Update arguments. -
update
(Workflow::Definition::Update, Symbol, String
) -- Update definition or name.
def execute_update(update, *args, id: SecureRandom.uuid, rpc_options: nil) start_update( update, *args, wait_for_stage: WorkflowUpdateWaitStage::COMPLETED, id:, rpc_options: ).result end