ds_set_schedule
Create a schedule for an Apache DolphinScheduler workflow using a Quartz cron expression. The schedule is created offline and must be activated separately.
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
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 | ||
| project_name | Yes | ||
| workflow_code | Yes |