NodesCore
Wait
Pause workflow progress for a fixed duration before continuing.
Wait
Description
Wait pauses execution for a configured number of milliseconds, then continues downstream. Use it for delay windows, retry spacing, or time-based orchestration steps.
Examples
Basic usage: delay a follow-up step by one minute
workflow("wf.wait.reply")
.manualTrigger({ ticketId: "t_42", status: "pending_reply" })
.wait("Give the customer time to reply", "60s")
.build();Example input:
{
"ticketId": "t_42",
"status": "pending_reply"
}Example output:
{
"ticketId": "t_42",
"status": "pending_reply"
}Advanced usage: create a short cooldown inside a retry-oriented flow
workflow("wf.retry.cooldown")
.name("Retry cooldown")
.manualTrigger("Start", { attempt: 1, url: "https://api.example.test" })
.wait("Cooldown before next decision", "5s")
.build();Example input:
{
"attempt": 1,
"url": "https://api.example.test"
}Example output:
{
"attempt": 1,
"url": "https://api.example.test"
}