Beta
This action is part of Loops, which are in beta and require the Developer Toolkit. To join the beta, email [email protected].
Wake Loop
The Wake Loop action requests a wake of a loop: the When woken actions of the loop's current stage run as a separate run, now or at a time you choose. See Wakes for how stage schedules work.
When to Use This Action
Use this action when:
- You want to re-check a loop right away because something related changed, for example a bill was paid
- You want to schedule a re-check at a time taken from data, such as the day after a due date
- Another workflow found a loop and needs to nudge it
To change the loop's stage, use Move Loop to Stage.
Configuration
| Field | Description |
|---|---|
| Loop | The ID of the loop. Optional in a loop stage or event: leave it empty to use the loop this run belongs to. Required everywhere else, including in a macro or AI action called from a loop run, because those do not see the calling loop. Supports text expressions. |
| At | The date and time to wake the loop, for example {{date add="2 days"}}. Leave empty to wake the loop now. Without a time zone the time is read as UTC. Supports text expressions. |
Returned Variables
This action does not return any variables.
Notes
- A loop has one pending wake at a time. A request replaces the pending wake, including the stage's next scheduled wake. If you make several requests before the wake starts, the loop wakes once at the time you chose in the last request.
- After any wake, the stage's schedule still counts from when the loop entered the stage. It does not restart. For example, if a stage wakes every 7 days and you wake it now on day 3, it still wakes on days 7, 14, and 21. If you instead request a day 10 wake on day 3, the day 10 wake replaces the day 7 wake, and the schedule continues on day 14. To keep the scheduled wakes, wake the loop now or choose a time before the next scheduled wake.
- A time in the past wakes the loop right away.
- If the At value is not a date and time, the action fails.
- The loop must belong to your account. An unknown loop ID fails the action.
- The action fails if the loop is closed. Reopen the loop first.