Skip to content

Commit 72464c8

Browse files
ayatnkwfreakwriter
andauthored
Node overhaul: Schedule Trigger (n8n-io#2341)
Co-authored-by: freakwriter <[email protected]>
1 parent aaaa24f commit 72464c8

File tree

1 file changed

+27
-24
lines changed

1 file changed

+27
-24
lines changed

docs/integrations/builtin/core-nodes/n8n-nodes-base.scheduletrigger.md

Lines changed: 27 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,19 @@ If a workflow uses the Schedule node as a trigger, make sure that you save and a
2020

2121
Add **Trigger Rules** to determine when the trigger should run.
2222

23-
Use the **Trigger Interval** to select the time interval unit of measure to schedule the trigger for. All other rule parameters depend on the interval you select. Choose from:
23+
Use the **Trigger Interval** to select the time interval unit of measure to schedule the trigger for. All other parameters depend on the interval you select. Choose from:
2424

25-
* [**Seconds**](#seconds-trigger-interval)
26-
* [**Minutes**](#minutes-trigger-interval)
27-
* [**Hours**](#hours-trigger-interval)
28-
* [**Days**](#days-trigger-interval)
29-
* [**Weeks**](#weeks-trigger-interval)
30-
* [**Months**](#months-trigger-interval)
31-
* [**Custom (Cron)**](#custom-cron-interval)
25+
- [Seconds trigger interval](#seconds-trigger-interval)
26+
- [Minutes trigger interval](#minutes-trigger-interval)
27+
- [Hours trigger interval](#hours-trigger-interval)
28+
- [Days trigger interval](#days-trigger-interval)
29+
- [Weeks trigger interval](#weeks-trigger-interval)
30+
- [Months trigger interval](#months-trigger-interval)
31+
- [Custom (Cron) interval](#custom-cron-interval)
3232

3333
You can add multiple **Trigger Rules** to run the node on different schedules.
3434

35-
Refer to the sections below for more detail on configuring each **Trigger Interval**
35+
Refer to the sections below for more detail on configuring each **Trigger Interval**. Refer to [Templates and examples](#templates-and-examples) for further examples.
3636

3737
### Seconds trigger interval
3838

@@ -64,7 +64,7 @@ For example, if you enter `2` **Days Between Triggers**, **9am** for **Trigger a
6464
* **Trigger at Hour**: Select the hour of the day to trigger the node.
6565
* **Trigger at Minute**: Enter the minute past the hour to trigger the node when it runs, from `0` to `59`.
6666

67-
For example, if you enter `2` **Weeks Between Triggers**, **Monday** for **Trigger on Weekdays**, **3pm** for **Trigger at Hour**, and `30` **Trigger at Minute**, the node will run every two weeks on Monday at 3:30pm.
67+
For example, if you enter `2` **Weeks Between Triggers**, **Monday** for **Trigger on Weekdays**, **3pm** for **Trigger at Hour**, and `30` **Trigger at Minute**, the node will run every two weeks on Monday at 3:30 PM.
6868

6969
### Months trigger interval
7070

@@ -73,33 +73,36 @@ For example, if you enter `2` **Weeks Between Triggers**, **Monday** for **Trigg
7373
* **Trigger at Hour**: Select the hour of the day to trigger the node.
7474
* **Trigger at Minute**: Enter the minute past the hour to trigger the node when it runs, from `0` to `59`.
7575

76-
For example, if you enter `3` **Months Between Triggers**, `28` **Trigger at Day of Month**, **9am** for **Trigger at Hour**, and `0` **Trigger at Minute**, the node will run each quarter on the 28th day of the month at 9:00am.
76+
For example, if you enter `3` **Months Between Triggers**, `28` **Trigger at Day of Month**, **9am** for **Trigger at Hour**, and `0` **Trigger at Minute**, the node will run each quarter on the 28th day of the month at 9:00 AM.
7777

7878
### Custom (Cron) interval
7979

8080
Enter a custom cron **Expression** to set the schedule for the trigger.
8181

8282
To generate a Cron expression, you can use [crontab guru](https://crontab.guru){:target=_blank .external-link}. Paste the Cron expression that you generated using crontab guru in the **Expression** field in n8n.
8383

84-
### Examples
84+
#### Examples
8585

86-
If you want to trigger your workflow every day at 04:08:30, enter the following in the **Cron Expression** field.
87-
```
88-
30 8 4 * * *
89-
```
86+
|Type|Cron Expression|Description|
87+
|---|---|---|
88+
|Every X Seconds|`*/10 * * * * *`|Every 10 seconds.|
89+
|Every X Minutes|`*/5 * * * *`|Every 5 minutes.|
90+
|Hourly|`0 * * * *`|Every hour on the hour.|
91+
|Daily|`0 6 * * *`|At 6:00 AM every day.|
92+
|Weekly|`0 12 * * 1`|At noon every Monday.|
93+
|Monthly|`0 0 1 * *`|At midnight on the 1st of every month.|
94+
|Every X Days|`0 0 */3 * *`|At midnight every 3rd day.|
95+
|Only Weekdays|`0 9 * * 1-5`|At 9:00 AM Monday through Friday.|
96+
|Custom Hourly Range|`0 9-17 * * *`|Every hour from 9:00 AM to 5:00 PM every day.|
97+
|Quarterly|`0 0 1 1,4,7,10 *`|At midnight on the 1st of January, April, July, and October.|
9098

91-
If you want to trigger your workflow every day at 04:08, enter the following in the **Cron Expression** field.
92-
```
93-
8 4 * * *
94-
```
95-
96-
### Why there are six asterisks in the Cron expression
99+
#### Why there are six asterisks in the Cron expression
97100

98101
The sixth asterisk in the Cron expression represents seconds. Setting this is optional. The node will execute even if you don't set the value for seconds.
99102

100-
| * | * | * | * | * | * |
103+
| (*) | * | * | * | * | * |
101104
|:--:|:--:|:--:|:--:|:--:|:--:|
102-
|second|minute|hour|day of month|month|day of week|
105+
|(second)|minute|hour|day of month|month|day of week(Sun-Sat)|
103106

104107
## Templates and examples
105108

0 commit comments

Comments
 (0)