Skip to main content

ParseSchedule

ParseSchedule returns a cron.Schedule for the trigger's automation spec. Supports both cron expressions and fixed-rate schedules. Returns (nil, nil) if the trigger has no schedule automation.

def ParseSchedule(
t: *models.Trigger
) - > cron.Schedule, error

Returns a cron.Schedule for the trigger's automation spec. Supports both cron expressions and fixed-rate schedules. Returns (nil, nil) if the trigger has no schedule automation.

Parameters

NameTypeDescription
t*models.TriggerThe trigger object containing the automation specification to parse for a schedule.

Returns

TypeDescription
cron.Schedule, errorA cron.Schedule object representing the parsed schedule, or an error if parsing fails. Returns (nil, nil) if the trigger has no schedule automation.