ds_update_schedule_cron
Updates only the cron expression of an existing DolphinScheduler schedule while keeping other settings, with optional automatic re-onlining after the change.
Instructions
Update only the cron expression of a schedule (keeps all other settings).
Flow: read current state → offline if needed → update → re-online (default).
v2.0.10: queries the target schedule directly instead of scanning the full list.
Args: project_name: Project name schedule_id: Schedule ID (from ds_list_schedules) cron: New Quartz 7-field expression start_time: New start time yyyy-MM-dd HH:mm:ss (keep original if empty) end_time: New end time (keep original if empty) auto_online: Re-activate after update (default True)
Returns: { "schedule_id": int, "new_cron": str, "release_state": "ONLINE" | "OFFLINE", "status": "updated", "online_retry_detail": str }
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>",
"schedule_id": "<schedule_id>",
"cron": "<cron>"
},
"name": "ds_update_schedule_cron"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cron | Yes | ||
| end_time | No | ||
| start_time | No | ||
| auto_online | No | ||
| schedule_id | Yes | ||
| project_name | Yes |