Skip to content
Docs

Schedule trigger: every N minutes, daily, weekly or monthly

Start a workflow every N minutes or hours on the clock, daily, weekly on chosen days, or monthly on a day, in your timezone. What happens after an outage.

Updated

On a schedule starts the workflow at times you choose. Nothing else has to call Foliot.

How to set it up

  1. Create a workflow and choose On a schedule.
  2. Pick how often: every N minutes or hours (at least 1 minute), daily at a time, weekly on the days you choose, or once a month on a day (the 1st to the 28th, or the last day of the month), at a time.
  3. Pick the timezone. The times follow it, through daylight-saving changes.
  4. Add your steps and turn the workflow on.

Data it gives

  • scheduledAt: the time this run was due.
  • timezone: the workflow's timezone.

When intervals run

Every N minutes or hours runs on the clock, counted from midnight in your timezone: every 15 minutes runs at :00, :15, :30 and :45, every hour at :00, every 6 hours at 00:00, 06:00, 12:00 and 18:00. Turning the workflow on at 10:37 makes an hourly one first run at 11:00. An interval that doesn't divide a day evenly, like every 7 minutes, starts counting again at midnight, so one gap each day is shorter.

Limits

  • At most once a minute.
  • Monthly runs can't be on the 29th, 30th or 31st, which not every month has; pick the last day instead.
  • Schedules are checked every minute, so a run starts within about a minute of its time.
  • After an outage, one run fires for the first missed time (its scheduledAt is that old time), then the schedule moves on to the next upcoming time. Other missed times aren't caught up.
  • Each time it fires is one run, however many steps follow.