Expand description
The Wait block: the run stops for a time or for an event (docs/specs/SPEC_DRONE_GENERAL_AUTOMATION_2026_11_11.md §3.3, “Waiting”).
{ "for": "30m" } waits that long (500ms, 45s, 30m, 2h, 1d, or a
number of seconds); { "until": "2026-12-01T09:00:00Z" } waits for a time
(RFC 3339); { "on": "label" } waits for an event: the label says what it is
for, the key that ends it is made when the wait starts (backend::drone_wait).
Exactly one of the three. The scheduler does the waiting
(scheduler/wait.rs), because the wait is kept in the run’s checkpoint.
Enums§
- Wait
- What a Wait block waits for.
Constants§
- MAX_
WAIT_ MS - The longest a run may be told to wait: 30 days.
Functions§
- check
- The block setting is well formed, as far as it can be told before the run: one that is a template is checked when the wait starts.
- duration_
ms 🔒 - A duration as written:
500ms,45s,30m,2h,1dor a number of seconds. - parse
- The block’s setting, with templates filled in by
resolve. A time that is not in the future is allowed (the wait is over at once); one more than 30 days fromnow_msis not.