ds_update_workflow
Update DolphinScheduler workflow definitions while preserving code and auto-incrementing version. Fallback for DAG modifications, supports full task override.
Instructions
Update workflow definition (PUT method, preserves code, auto-increments version).
This is a fallback when ds_modify_workflow_dag cannot handle the change. Supports full task definition override with complete replacement.
Args: project_name: Project name workflow_code: Process-definition code task_definitions: Task definition list (list or JSON string) task_relations: Task relation list (list or JSON string) locations: Node coordinates (list or JSON string, default "[]") name: Workflow name (empty = keep original) description: Description (empty = keep original) auto_offline: Auto-offline before update (default True) auto_online: Auto-online after update (default True)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| locations | No | [] | |
| auto_online | No | ||
| description | No | ||
| auto_offline | No | ||
| project_name | Yes | ||
| workflow_code | Yes | ||
| task_relations | Yes | ||
| task_definitions | Yes |