Interface: IScheduleSpec
Properties of a ScheduleSpec.
Hierarchy
-
↳
IScheduleSpec
Properties
calendar
• Optional calendar: null | $Properties[]
Calendar-based specifications of times.
Inherited from
cronString
• Optional cronString: null | string[]
cron_string holds a traditional cron specification as a string. It
accepts 5, 6, or 7 fields, separated by spaces, and interprets them the
same way as CalendarSpec.
5 fields: minute, hour, day_of_month, month, day_of_week
6 fields: minute, hour, day_of_month, month, day_of_week, year
7 fields: second, minute, hour, day_of_month, month, day_of_week, year
If year is not given, it defaults to *. If second is not given, it
defaults to 0.
Shorthands @yearly, @monthly, @weekly, @daily, and @hourly are also
accepted instead of the 5-7 time fields.
Optionally, the string can be preceded by CRON_TZ=<timezone name> or
TZ=<timezone name>, which will get copied to timezone_name. (There must
not also be a timezone_name present.)
Optionally "#" followed by a comment can appear at the end of the string.
Note that the special case that some cron implementations have for
treating day_of_month and day_of_week as "or" instead of "and" when both
are set is not implemented.
@every <interval>[/<phase>] is accepted and gets compiled into an
IntervalSpec instead. <interval> and <phase> should be a decimal integer
with a unit suffix s, m, h, or d.
Inherited from
endTime
• Optional endTime: null | $Properties
If end_time is set, any timestamps after end_time will be skipped.
Inherited from
excludeCalendar
• Optional excludeCalendar: null | $Properties[]
Any timestamps matching any of exclude_* will be skipped. Deprecated. Use exclude_structured_calendar.
Inherited from
excludeStructuredCalendar
• Optional excludeStructuredCalendar: null | $Properties[]
ScheduleSpec excludeStructuredCalendar
Inherited from
$Properties.excludeStructuredCalendar