Workflow steps

wait

type: "wait"

A pause in the chain: a number of seconds, or until a date. One day at most — beyond that it is a schedule, not a pause.

free86 400 s at mostseconds or until
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

secondsnumber

How long. Positive, 86 400 at most.

untilstring

A date, instead of a duration.

One of the two is required. A duration longer than a day is refused with the reason: past that, what is wanted is a scheduled trigger.

{ id: "settle", type: "wait", config: { seconds: 120 } }
{"id": "settle", "type": "wait", "config": {"seconds": 120}}

What it is for

  • Letting a certificate become active after a host is created.
  • Giving an external service time to finish something a webhook announced.
  • Spacing out calls to a service that rate-limits.

Output

{{steps.settle.output.waitedSeconds}}
{{steps.settle.output.waitedUntil}}
"{{steps.settle.output.waitedSeconds}}"
"{{steps.settle.output.waitedUntil}}"

It is not a poll

A wait does not check anything

It pauses. To wait for a condition, follow it with the step that checks and a condition that branches — a wait followed by a check is a poll; a wait alone is a guess.

It cannot be a loop body

Nor can a condition, a switch, a merge, a human step or another loop: those live in the graph. A loop repeats one step that does work.