Restart Workflow
Restart a workflow execution from the beginning with the same input. This operation has no effect when called on a workflow that is not in a terminal status. If useLatestDefinition is set, the restarted workflow fetches the latest definition from the metadata store.
Input Payload
Attribute | Description |
---|---|
workflowId | The unique identifier of the workflow to be restarted. |
API Endpoint
POST /workflow/{workflowId}/restart
Client SDK Methods
- Java
- Go
- Python
- C#
- JavaScript
- Typescript
- Clojure
BulkResponse restartWorkflow(List<String> workflowIds, Boolean useLatestDefinitions) throws ApiException
func (e *WorkflowExecutor) Restart(workflowId string, useLatestDefinition bool) error
WorkflowResourceApi.restart1(self, workflow_id, **kwargs)
void WorkflowResourceApi.Restart(string workflowId, bool? useLatestDefinitions = null)
WorkflowExecutor.restart(
workflowId: string,
useLatestDefinitions: boolean,
): CancelablePromise<void>
WorkflowExecutor.restart(
workflowId: string,
useLatestDefinitions: boolean,
): CancelablePromise<void>
(workflow-resource/restart-workflow [options workflow-id])