Scheduled deployments
A scheduled deployment runs a tagged version of an Unstract Flow workflow at the times you set, such as every 15 minutes or every weekday at 9am. You create one with the Scheduled (Cron) trigger type; Deployments covers the other fields.
Write the schedule
Type the schedule into Schedule. As you type, the dialog shows the cron expression it produced, a description, and the next three run times in the schedule's Timezone, named after the first one. Check them before you create the deployment. A time needs at, as in daily at 6pm. A phrase with words the dialog doesn't read, such as daily from 9am to 5pm, is refused, and the message names those words. Leave the time zone out of the phrase, as in daily at 9am utc: set it in Timezone instead.
| You write | It runs |
|---|---|
every 15 minutes | Every 15 minutes |
every 2 hours, hourly | Every 2 hours, every hour, on the hour |
hourly at 30 past, every 2 hours at 15 past | Every hour at :30, every 2 hours at :15 |
daily at 6:30pm, every day at 8am | Every day at that time |
daily, midnight, noon | Every day at 9:00, 0:00 or 12:00 |
every Monday, weekly on Friday | Every week on that day at 9:00, or at the time you add, such as every Monday at 2pm |
weekdays | Monday to Friday at 9:00, or at the time you add, such as weekdays at 8am |
monthly on the 15th | Every month on that day at 9:00, or at the time you add, such as monthly on the 15th at 6pm |
0 14 * * 1 | Any five-field cron expression written in numbers: here, Mondays at 14:00 |
@hourly, @daily, @weekly, @monthly | As in cron: every hour on the hour, every day at 0:00, Sundays at 0:00, the 1st of each month at 0:00 |
For a schedule these phrases can't express, write a cron expression. Day and month names such as MON aren't accepted in it.
every N minutes starts again at the top of each hour, and every N hours at midnight, so N must divide 60 or 24. Any other N is refused, because the gaps would be uneven: every 45 minutes would run at :00 and :45, then at :00 again 15 minutes later. every 60 minutes runs every hour, and every 24 hours every day at 0:00. A phrase reads one day of the week, and one that names two or more, such as every saturday and sunday, is refused: write a cron expression, such as 0 9 * * 0,6. A start the interval fires at anyway is kept, so every 6 hours starting at 6am runs at 0:00, 6:00, 12:00 and 18:00; one it doesn't, such as every 2 hours starting at 3pm, is refused, and the message says why. Write a cron expression for that. Runs must be at least 5 minutes apart, unless your organization has a different minimum (the message names it), measured at the shortest gap: 0,3 * * * * is refused, because :00 and :03 are 3 minutes apart.
A schedule's times are read in the deployment's Timezone, which starts as your browser's time zone. Pick another from the list when you create the deployment, or later under Edit; type part of a name such as America/New_York to find it. Flow refuses a name that isn't a time zone.
On Edit, Schedule holds the deployment's cron expression. Leave it as it is to keep the schedule, or type a new one, in plain words or as a cron expression, and check the preview. Saving any other field leaves the schedule alone.
Parallelism
Parallelism sets how many runs of the deployment can be in flight at once, 1 by default.
- At 1, a scheduled time is skipped while the previous run is still going. The deployment's Activity tab records each skip. A scheduled time is also skipped when the deployment started a run less than a minute before it, and Activity records that too. When Flow's scheduler runs more than a minute late, such as during maintenance, the time is skipped and Activity records a missed run: when it was due, how late the scheduler was, and how many earlier times were missed with it. A missed time isn't run later, and the next scheduled time runs as normal. Times before the deployment was created, or while it was paused, aren't recorded as missed. A run waiting for a review doesn't count, so the next scheduled time starts another run.
- Above 1, each scheduled time starts runs until the deployment has that many in flight.
Raising it above 1 for the first time opens Parallel runs: please consider. Parallel runs are safe when the workflow takes its items from a pipeline: an inbox, a folder or bucket, or a table. For other sources, the spec has to keep two runs from working on the same item.
Your organization also has a cap on runs in flight, counting runs from the editor and the API as well as from deployments, shown in the footer of the Deployments page. At the cap, a scheduled time is skipped and the Activity tab says so. A deployment with no run in flight still gets one run through.
A webhook deployment has Parallelism too, with no limit by default: Webhook deployments says what a request gets at the limit.
- A monthly date after the 28th runs on the 28th.
- Words about timing inside the spec set no schedule. The schedule lives only on the deployment.