@@ -165,16 +165,44 @@ You can then define:
165165 the frequency of this check to ensure that more granular delays, e.g., 1 hour before the event
166166 start date and time, or 30 minutes after creation, can be respected as closely as possible.
167167
168- To view or manually edit the frequency of the scheduler for a time-triggered automation rule,
169- with :ref: `developer mode activated <developer-mode >`, click :guilabel: `Scheduled action `.
168+ To view or manually edit the frequency of the check for time-triggered automation rules,
169+ with :ref: `developer mode activated <developer-mode >`, click :icon: `fa-arrow-right `
170+ :guilabel: `Scheduled action `.
170171
171172 .. image :: automated_actions/trigger-delay-scheduled-action.png
172173 :alt: Direct link to scheduled action for automations
173174
174175 In the :guilabel: `Automation Rules: check and execute ` scheduled action that opens, update the
175176 value of the :guilabel: `Execute Every ` field, if desired. Clicking :guilabel: `Run Manually `
176- triggers the scheduled action to run immediately. To return to the automation rule setup, click
177- the automation rule name in the breadcrumbs.
177+ triggers *the scheduled action * to run immediately. To return to the automation rule setup,
178+ click the automation rule name in the breadcrumbs.
179+
180+ .. important ::
181+ Manually running the :guilabel: `Automation Rules: check and execute ` scheduled action *does not
182+ necessarily trigger the automation rule itself *. An automation rule only runs when the
183+ scheduled trigger date & time falls *between * the last run of the scheduled action and the
184+ current run (whether scheduled or run manually):
185+
186+ **last run --> scheduled trigger date & time --> current run **
187+
188+ .. example ::
189+ At 11:00 am on October 15 you create an automation rule that triggers the sending of an
190+ email 30 days before the :guilabel: `Contract end date `; contracts end at 11:59 pm on their
191+ contract end date.
192+
193+ This new rule will only run for contracts whose end date is at least 30 days *after * the
194+ creation of the rule, i.e., an end date of November 14 or later. This is because until that
195+ moment, the scheduled trigger date of `contract end date ` - `30 days ` will always be
196+ *earlier than * the last run of the scheduled action.
197+
198+ For a contract with an end date of November 14, the scheduled trigger date & time is 30 days
199+ before 11:59 pm on November 14, i.e., 11:59 pm on October 15. The rule will therefore run
200+ the first time the :guilabel: `Automation Rules: check and execute ` scheduled action runs
201+ after the scheduled trigger date & time:
202+
203+ - last run of the scheduled action: October 15 (the scheduler runs minimum every 4 hours)
204+ - scheduled trigger date & time: 11:59 pm on October 15
205+ - current run of the scheduled action: 3:59 am on October 16 at the latest
178206
179207- :guilabel: `Extra Conditions `: Click :guilabel: `Add condition `, then specify the conditions to be
180208 met for the automation rule to run. Click :guilabel: `New Rule ` to add another condition.
0 commit comments