IronFlowDocs

delay

Pause workflow execution for a specified duration.

Parameters

secondsfloatdefault 1.0
Number of seconds to pause (supports fractional values)

Context Output

  • delay_seconds -- the actual number of seconds the node paused for

Example

local flow = Flow.new("rate_limited")

flow:step("fetch_data", nodes.log({
    message = "Fetching data from API..."
}))

flow:step("wait", nodes.delay({
    seconds = 2.5
})):depends_on("fetch_data")

flow:step("done", nodes.log({
    message = "Resumed after ${ctx.delay_seconds}s pause"
})):depends_on("wait")

return flow

IronFlow documentation

Find the next step

Type a keyword to search the documentation.

to move · Enter to open · Esc to close