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
| Name | Type | Description |
|---|---|---|
| t | *models.Trigger | The trigger object containing the automation specification to parse for a schedule. |
Returns
| Type | Description |
|---|---|
cron.Schedule, error | A cron.Schedule object representing the parsed schedule, or an error if parsing fails. Returns (nil, nil) if the trigger has no schedule automation. |