fork_workflow
Create a new workflow starting from a specific step of an existing workflow, reusing recorded outputs for debugging, testing fixes, or replaying.
Instructions
Fork a workflow from a specific step.
Creates a new workflow that starts from a specific step of an existing workflow, reusing the recorded outputs of all prior steps. Useful for debugging, testing fixes, or replaying workflows from a specific point.
Args: application_name (string, required): Name of the DBOS application workflow_id (string, required): ID of the workflow to fork from start_step (int, required): The step number to start from (use list_steps to find step IDs) application_version (string, optional): Application version for the new workflow (defaults to current version) new_workflow_id (string, optional): Custom ID for the new workflow (auto-generated if not specified) queue_name (string, optional): Enqueue the forked workflow onto this queue instead of running it immediately queue_partition_key (string, optional): Partition key for the queue
Returns: workflow_id (string): The ID of the newly created forked workflow forked_from (string): The ID of the original workflow start_step (int): The step number the fork starts from
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| queue_name | No | ||
| start_step | Yes | ||
| workflow_id | Yes | ||
| new_workflow_id | No | ||
| application_name | Yes | ||
| application_version | No | ||
| queue_partition_key | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||