Schedule Trigger
Use the Schedule Trigger node to run workflows at fixed intervals and times. This works similarly to the Cron software utility in Unix-like systems.
Node parameters
Add Trigger Rules to determine when the trigger should run.
Use the Trigger Interval to select the time interval unit for scheduling the trigger. All other parameters depend on the interval you select. Choose from:
- Seconds trigger interval
- Minutes trigger interval
- Hours trigger interval
- Days trigger interval
- Weeks trigger interval
- Months trigger interval
- Custom (Cron) interval
You can add multiple Trigger Rules to run the node on different schedules.
Refer to the sections below for detailed configuration instructions for each Trigger Interval. See Templates and examples for additional examples.
Seconds trigger interval
- Seconds Between Triggers: Enter the number of seconds between each workflow trigger. For example, entering
30will trigger the workflow every 30 seconds.
Minutes trigger interval
- Minutes Between Triggers: Enter the number of minutes between each workflow trigger. For example, entering
5will trigger the workflow every 5 minutes.
Hours trigger interval
- Hours Between Triggers: Enter the number of hours between each workflow trigger.
- Trigger at Minute: Enter the minute past the hour when the node should trigger, from
0to59.
For example, entering 6 for Hours Between Triggers and 30 for Trigger at Minute will run the node every six hours at 30 minutes past the hour.
Days trigger interval
- Days Between Triggers: Enter the number of days between each workflow trigger.
- Trigger at Hour: Select the hour of the day when the node should trigger.
- Trigger at Minute: Enter the minute past the hour when the node should trigger, from
0to59.
For example, entering 2 for Days Between Triggers, 9am for Trigger at Hour, and 15 for Trigger at Minute will run the node every two days at 9:15 AM.
Weeks trigger interval
- Weeks Between Triggers: Enter the number of weeks between each workflow trigger.
- Trigger on Weekdays: Select the day(s) of the week when the node should trigger.
- Trigger at Hour: Select the hour of the day when the node should trigger.
- Trigger at Minute: Enter the minute past the hour when the node should trigger, from
0to59.
For example, entering 2 for Weeks Between Triggers, Monday for Trigger on Weekdays, 3pm for Trigger at Hour, and 30 for Trigger at Minute will run the node every two weeks on Monday at 3:30 PM.
Months trigger interval
- Months Between Triggers: Enter the number of months between each workflow trigger.
- Trigger at Day of Month: Enter the day of the month when the node should trigger, from
1to31. If a month doesn't have the specified day, the node won't trigger. For example, entering30means the node won't trigger in February. - Trigger at Hour: Select the hour of the day when the node should trigger.
- Trigger at Minute: Enter the minute past the hour when the node should trigger, from
0to59.
For example, entering 3 for Months Between Triggers, 28 for Trigger at Day of Month, 9am for Trigger at Hour, and 0 for Trigger at Minute will run the node quarterly on the 28th day of the month at 9:00 AM.
Custom (Cron) interval
Enter a custom cron Expression to set the schedule for the trigger.
To generate a Cron expression, you can use crontab guru. Paste the generated Cron expression into the Expression field.
Examples
| Type | Cron Expression | Description |
|---|---|---|
| Every X Seconds | */10 * * * * * | Every 10 seconds. |
| Every X Minutes | */5 * * * * | Every 5 minutes. |
| Hourly | 0 * * * * | Every hour on the hour. |
| Daily | 0 6 * * * | At 6:00 AM every day. |
| Weekly | 0 12 * * 1 | At noon every Monday. |
| Monthly | 0 0 1 * * | At midnight on the 1st of every month. |
| Every X Days | 0 0 */3 * * | At midnight every 3rd day. |
| Only Weekdays | 0 9 * * 1-5 | At 9:00 AM Monday through Friday. |
| Custom Hourly Range | 0 9-17 * * * | Every hour from 9:00 AM to 5:00 PM every day. |
| Quarterly | 0 0 1 1,4,7,10 * | At midnight on the 1st of January, April, July, and October. |
While variables can be used in the scheduled trigger, their values are only evaluated when the workflow is activated. If you modify a variable's value in the settings after activating a workflow, the changes won't affect the cron schedule. To re-evaluate the variable, set the workflow to Inactive and then back to Active.
Why there are six asterisks in the Cron expression
The sixth asterisk in the Cron expression represents seconds. Setting this value is optional. The node will execute even if you don't specify a value for seconds.
| (*) | * | * | * | * | * |
|---|---|---|---|---|---|
| (second) | minute | hour | day of month | month | day of week(Sun-Sat) |