Skip to main content
Rest constraints ensure employees have adequate recovery time between shifts, comply with labor regulations, and maintain work-life balance.

Rest Types

Rest After Shift

Require minimum rest time after specific shift types. Triggered when a shift ends:
After any shift tagged NIGHT, the employee must have at least 15 hours before their next shift.

Multiple Rest Tolerances

Define tiered rest requirements:

Weekly Rest

Ensure minimum total rest hours within a defined period:
Employees get at least 35 hours of rest during the week of January 1-7.

Exclude Non-Work Shifts

Exclude certain shift types from rest calculations:

Weekend Rest Window

Define a specific weekend rest window (e.g., Saturday night to Monday morning):

Maximum Rest Duration

Cap how long an employee can be idle between shifts (e.g. to avoid disengagement or maintain on-call cadence):
If more than 48 hours pass after a shift tagged NIGHT before the next shift, the schedule is penalized.

Consecutive Rest

Require a minimum uninterrupted rest period:
min
string (ISO 8601 duration)
Total minimum rest required (can be split)
max
string (ISO 8601 duration)
Maximum allowed rest duration between shifts — penalizes idle gaps longer than this value
minConsecutive
string (ISO 8601 duration)
Minimum uninterrupted rest block required
frequency
integer
Number of rest-rule violations tolerated before the constraint penalizes. If the number of violations is at or below frequency, none are penalized; once violations exceed frequency, every violation is penalized (not just the excess).

Rest Properties

tags
array
Shift tags that trigger this rest rule (e.g., ["NIGHT"]). Omit this field (leave it unset) to apply the rule to all shifts — "ALL" is not a recognized wildcard value; it would only match shifts literally tagged "ALL".
excludes
array
Shift tags to exclude from rest calculations
sequence
string
When to apply: AFTER (default) or BEFORE
period
object
Fixed time period for weekly/periodic rest rules
period.type
string
Rolling period type when period.from/period.to are not given: DAILY (1 day), WEEKLY (7 days), MONTHLY (30 days), or SCHEDULE (whole planning horizon)

Common Rest Patterns

Combine rest rules with patterns for comprehensive fatigue management. Rest rules handle timing, patterns handle shift sequences.