ds_set_schedule
Creates an offline cron schedule for a DolphinScheduler workflow using a required Quartz expression; activate it afterwards to run jobs automatically on your defined interval.
Instructions
Create a schedule for a workflow (created OFFLINE; activate with ds_online_schedule).
v2.0.12: cron is now required (no default) to prevent silent misuse.
Args: project_name: Project name workflow_code: Process-definition code cron: Quartz 7-field expression (required, e.g. "0 0 6 * * ? *") start_time: Start time yyyy-MM-dd HH:mm:ss; defaults to today 00:00:00 end_time: End time; defaults to 2030-12-31 23:59:59 warning_type: NONE, SUCCESS, FAILURE (default) or ALL warning_group_id: Alert group ID; positive when alerts are enabled timezone_id: IANA timezone (default Asia/Shanghai)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_name": "<project_name>",
"workflow_code": "<workflow_code>",
"cron": "<cron>"
},
"name": "ds_set_schedule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cron | Yes | ||
| end_time | No | ||
| start_time | No | ||
| timezone_id | No | Asia/Shanghai | |
| project_name | Yes | ||
| warning_type | No | FAILURE | |
| workflow_code | Yes | ||
| warning_group_id | No |