core / logic / schema v1
Wait
Pause the workflow WITHOUT holding a worker (until a matching event arrives, or a duration elapses) then continue. Unlike Delay, this survives restarts and can wait hours or days. The event/timer payload becomes this node's output.
Prerequisites
No connection prerequisite is declared for this node.
Parameters
| Parameter | Type | Description |
|---|---|---|
Wait formode | select Required | Duration: pause for a set time, then continue. Event: pause until something with a matching key happens (e.g. a button click), then continue with its data. Options: A duration (wait, then continue) (timer), An event (e.g. a button click) (event) |
Event keyeventKey | text Optional | A later "Signal / Cancel Wait" node elsewhere (e.g. in a "/endgiveaway" command's workflow) can wake or cancel THIS wait by using the exact same key here. On resume, check {{cancelled}} downstream (e.g. with an If node) to tell a cancel apart from a real signal or a timeout.Field conditions{
"visible": {
"key": "mode",
"values": [
"event"
]
}
} |
Duration / timeouttimeoutSeconds | text Optional Default: | For a duration wait: how long to pause. For an event wait: optional auto-resume if no event arrives in time. Plain number = seconds, or write a duration like "1h30m" / "2 days". |
Inputs and outputs
Inputs
execute- Execute (input)
Outputs
done- Continue (output)timed_out- Timed Out (output)cancelled- Cancelled (output)
Output data schema
[
{
"key": "timed_out",
"type": "boolean",
"label": "Timed Out",
"optional": true,
"description": "True when the wait ended because the duration elapsed rather than an event arriving."
},
{
"key": "cancelled",
"type": "boolean",
"label": "Cancelled",
"optional": true,
"description": "True when another run cancelled this wait through its correlation key."
}
]Examples and troubleshooting have not yet been reviewed for this contract.
Version and compatibility
This reference follows the current authoring contract. Existing workflows retain their saved node revisions.
Contract identifier
e434adde309c6bcdf8132bc627d66f05baeb4a604b151268339adb24f92aeabf