Retry Failed Workflow
This API retries a failed workflow from the last failed task.
Input Payload
Attribute | Description |
---|---|
workflowId | The unique identifier of the failed workflow to be retried. |
API Endpoint
POST /workflow/{workflowId}/retry
When called, the task in the failed state is scheduled again, and the workflow moves to RUNNING status. If resumeSubworkflowTasks is set and the last failed task was a sub-workflow, the server restarts the sub-workflow from the failed task. If set to false, the sub-workflow is re-executed.
Client SDK Methods
- Java
- Go
- Python
- C#
- JavaScript
- Typescript
- Clojure
BulkResponse retryWorkflow(List<String> workflowIds) throws ApiException
func (e *WorkflowExecutor) Retry(workflowId string, resumeSubworkflowTasks bool) error
WorkflowResourceApi.retry1(self, workflow_id, **kwargs)
void WorkflowResourceApi.Retry(string workflowId, bool? resumeSubworkflowTasks = null)
WorkflowExecutor.retry(
workflowId: string,
resumeSubworkflowTasks: boolean,
): CancelablePromise<void>
WorkflowExecutor.retry(
workflowId: string,
resumeSubworkflowTasks: boolean,
): CancelablePromise<void>
(workflow-resource/retry-last-failed-task [options workflow-id resume-subworkflow-tasks])