Skip to main content

Delay

Stepdelaycontrol

Pauses the run for some minutes, hours or days, or until a date and time, and then goes on.

At a glance​

PropertyValue
Step namedelay
ResourceClusterStep (lumen.ai/v1alpha1)
Palette group, categorycontrol, logic
Credits0 credits each time it succeeds
Side effectsno
Installation must providenothing

Inputs​

PropertyValue
Needsnothing
Producesnothing
Works onitem one document at a time

Needs and Produces are data types (file, text, fields, email). The editor offers a step only where what it needs is already on the path. See Documents and data.

Outputs​

No named outputs. Later nodes still see everything produced earlier on the path, and this step passes the documents on unchanged.

Settings​

Set under config: on the flow node. Text settings may contain {nodeId.field} placeholders.

SettingTypeDefaultDescription
modestring"for"Mode is for (an amount of time, the default) or until (a moment).one of for, until
amountinteger-Amount and Unit are how long, for Mode for.minimum 1; maximum 129600
unitstring"minutes"Unitone of minutes, hours, days
untilstring-Until is the moment to go on at, an RFC 3339 time or a date (the start of that day, UTC), for Mode until. A moment already past does not wait.maxLength 64

The full JSON Schema of these settings: delay.schema.json.

Example​

Wait two hours before the next step

config
amount: 2
mode: for
unit: hours

Use it in a flow​

A node that runs delay goes under spec.nodes of a Flow. Give it any id, and list the next node ids in next.

flow.yaml
apiVersion: lumen.ai/v1alpha1
kind: Flow
metadata:
name: delay-example
namespace: tenant-acme
spec:
displayName: "Delay"
triggers:
- id: start
ref: {name: manual-run}
next: [delay]
nodes:
- id: delay
stepRef: {name: delay}
config:
amount: 2
mode: for
unit: hours