Schedules

The trigger On a schedule starts a workflow at the times you set, for example every morning at 8:00. Use it for reports, clean-up jobs, file imports and anything else that is not a reaction to one event.

Set up a schedule

  1. Select the trigger, Change trigger, and pick On a schedule.
  2. Under Runs, pick a preset:
    • Every 5 minutes, Every 15 minutes, Every 30 minutes
    • Every hour, Every 6 hours
    • Daily at midnight, Daily at 09:00, Weekdays at 09:00
    • Weekly (Monday 09:00)
    • Custom schedule
  3. For your own times, edit the Cron expression. The line under the field reads it back to you in words.
  4. Choose the Time zone. It starts with your store's time zone, marked (your store).
  5. Save and turn the workflow on.

Cron expressions

A cron expression has five fields: minute, hour, day of month, month, day of week.

Expression Runs
0 8 * * * Every day at 08:00
30 6 * * 1-5 Monday to Friday at 06:30
0 */2 * * * Every 2 hours, on the hour
0 9 1 * * On the first day of every month at 09:00
*/10 * * * * Every 10 minutes

The times are in the time zone you chose, so a daily 08:00 stays 08:00 when the clocks change. Schedules are checked once a minute.

What the steps see

A scheduled run has no store event. Its steps usually begin by getting data:

Then a Repeat for each step works through the results. See Repeat for each.

For the current date, Liquid's now works in every field:

Daily report of {{ 'now' | date: '%Y-%m-%d' }}

Good to know

  • Every scheduled run is a real run and counts against your plan. A job every 5 minutes is 8,640 runs in 30 days. See Plans, runs and extra runs.
  • A trigger filter is of little use on a schedule, because there is no event to filter on. To skip a run, start with a Condition.
  • Run now in the editor starts the workflow once, outside its schedule. It is shown when the workflow is on and saved.
  • To try a schedule without waiting, use Test.