A schedule starts a process at set times, such as every weekday at 09:00, without anyone pressing Play. There are three ways to set one up, and one way to say when a process may not run.
1. A schedule on a bot
- Open the bot's page and choose the Schedules tab.
- Click Add schedule.
- Fill in:
- Schedule name, for example "Daily morning run".
- Process – pick it from the list. It shows the processes this bot may run.
- Cron expression – when it runs (see below).
- Timezone – filled in with your browser's time zone. Change it if the schedule should follow another place's clock.
- Environment – which environment's variables and credentials the run uses. Default uses the process's environment, or else the company's; the form tells you which that is.
- Click Add schedule.
The list shows each schedule's next and last run. Use the switch to turn one off and on, or the bin to delete it. Automize starts the run on that bot when it is due.
2. A schedule on a pool
On a pool's page, add a schedule under Schedules. Choose the process and when it runs, in your own time zone. When it fires, the pool picks whichever machine is free and allowed to run it.
3. An "On a schedule" trigger
You can also put the schedule on the process map itself:
- Open the process, choose the Add step tab and add a Trigger.
- Under What starts this process, choose On a schedule.
- Choose How often: every day, every weekday, on the days you pick, or Advanced (cron expression).
- Set the time under At. This is the time on the machine the bot runs on.
The bot checks this trigger itself, so it fires only while the bot is watching its triggers. It needs bot 6.5.2 or later. See Triggers and webhooks.
4. Cron expressions
A cron expression has five parts: minute hour day-of-month month day-of-week.
0 9 * * 1-5 | 09:00 Monday to Friday |
0 9 * * 1 | 09:00 every Monday |
30 6 * * * | 06:30 every day |
0 0 1 * * | Midnight on the 1st of each month |
*/15 * * * * | Every 15 minutes |
5. Hours a process may run in
The process's own Schedule tab does not start runs. It says when runs are allowed:
- Open the process and choose Schedule in the sidebar.
- Paint the hours of the week the process may run in. Unpainted hours are blocked. Any time clears the limits.
- Click Save hours.
A run due in a blocked hour does not start. This is useful to keep a process off a system during its maintenance window, or out of office hours. Anyone who can see the process can see this tab; only people who can edit it can change the hours.
6. Good habits
- Do not let two runs of the same process overlap. Leave enough time for one to finish.
- Try a new schedule in a test environment first.
- Write down who owns each schedule and why it exists.
- Check the process's Runs tab after the first run.