Skip to main content

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 NameTypeDescriptionRequiredDefault
nameStringSchedule name, unique within the cluster. Letters, digits, and underscores only; stored in lower case.Required
descriptionStringExpanded schedule information.OptionalNone
expressionStringQuartz 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
userNameStringUser 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.OptionalSession user when adding; the schedule's current user when altering
clusterActionStringStart, 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
startTimeStringIf provided, the time from which the schedule is enabled, in ISO 8601 format YYYY-MM-DDThh:mm:ssZ. A past value has no effect.OptionalNone
endTimeStringIf 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.OptionalNone
timeZoneStringJava time zone ID in which expression is evaluated, e.g. America/New_York for daylight-saving-aware Eastern Time.OptionalThe 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"
}