Run a workflow on a schedule
Run work every few seconds with Timer, or at set times with Crontab.
On this page
Timer starts a flow at a fixed interval. Crontab starts it at set minutes, hours or days. Both run on the server, with or without the designer open.

Every few seconds: Timer
This service runs every 10 seconds, writes a log line and passes a status to Print.
- Drag Timer, Code and Print onto the canvas and connect them in that order.
- Double-click Timer. Set Interval to
10000(milliseconds). To send fixed data, clear Random data and type the Data, for exampletick. Select APPLY. - Double-click Code, paste the code below and select APPLY.
- Select APPLY in the toolbar, then Continue.

console.log('Heartbeat received:', value);
send({ status: 'ok', checked: new Date().toISOString() });Every 10 seconds, Print shows the status and the time, and the log line appears in the Console. Select Run on the Timer to start it at once.
At set times: Crontab
- Drag Crontab and Print onto the canvas and connect them.
- Double-click Crontab.
- In Timers, type a schedule in the empty field at the bottom and press Enter. A new Crontab has
0 9 * * *(every day at 9:00). Remove a schedule with the bin icon next to it. - Choose what it sends in Type, for example Current date and time.
- Select APPLY, then APPLY in the toolbar and Continue.
*" class="img-responsive" border="0" loading="lazy" />
A schedule has five fields: minute, hour, day of month, month and day of week (0 is Sunday). * means every value.
| Schedule | Runs |
|---|---|
* * * * * | Every minute |
0 9 * * * | Every day at 9:00 |
0 20 * * 1 | Every Monday at 20:00 |
Time zone offset is in minutes. As the window says, the server time is in UTC, and the window shows the offset of your browser.
Select Run on the Crontab to start it at once.