cancel_workflow
Cancel a running workflow, stopping its execution at the next step boundary. Optionally cancel child workflows started by it.
Instructions
Cancel a running workflow.
Sets the workflow status to CANCELLED. The workflow will stop executing at the next step boundary.
Args: application_name (string, required): Name of the DBOS application workflow_id (string, required): ID of the workflow to cancel cancel_children (bool, optional): Also cancel child workflows started by this workflow (default: false)
Returns: message (string): Confirmation message workflow_id (string): The cancelled workflow ID
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflow_id | Yes | ||
| cancel_children | No | ||
| application_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||