Cluster Schedules
A cluster schedule starts, stops, or restarts a cluster on a cron schedule. See Scheduling Cluster Activity for examples and the timing rules.
Specification
{
"name": String,
"description": String,
"expression": String,
"userName": String,
"clusterAction": String,
"startTime": String,
"endTime": String,
"timeZone": String
}
Structure values
| Field Name | Type | Description | Required | Default |
|---|---|---|---|---|
| name | String | Schedule name, unique within the cluster. Letters, digits, and underscores only; stored in lower case. | Required | |
| description | String | Expanded schedule information. | Optional | None |
| expression | String | Quartz cron expression: seconds minutes hours day-of-month month day-of-week [year]. The seconds field must be a single integer and the minutes field a single value, so a schedule fires at most once per hour. Evaluated in timeZone if set. | Required | |
| userName | String | User the action runs as. Must exist and have write permission or above on the cluster. Scheduled starts and stops appear in cluster history under this user. | Optional | Session user when adding; the schedule's current user when altering |
| clusterAction | String | Start, Stop, or Restart, case-insensitive. Start is skipped if the cluster is already running; Stop and Restart are skipped if it is already stopped. | Required | |
| startTime | String | If provided, the time from which the schedule is enabled, in ISO 8601 format YYYY-MM-DDThh:mm:ssZ. A past value has no effect. | Optional | None |
| endTime | String | If provided, the time after which the schedule is disabled, in ISO 8601 format YYYY-MM-DDThh:mm:ssZ. Must be in the future when the schedule is added or altered. | Optional | None |
| timeZone | String | Java time zone ID in which expression is evaluated, e.g. America/New_York for daylight-saving-aware Eastern Time. | Optional | The scheduler's time zone, typically UTC |
Example
{
"name": "stop_weekdays",
"description": "Stop after New York business hours until the end of the year.",
"expression": "0 0 19 ? * MON-FRI",
"clusterAction": "Stop",
"timeZone": "America/New_York",
"endTime": "2026-12-31T23:59:59Z"
}