Delay
Step
delaycontrolPauses the run for some minutes, hours or days, or until a date and time, and then goes on.
At a glance
| Property | Value |
|---|---|
| Step name | delay |
| Resource | ClusterStep (lumen.ai/v1alpha1) |
| Palette group, category | control, logic |
| Credits | 0 credits each time it succeeds |
| Side effects | no |
| Installation must provide | nothing |
Inputs
| Property | Value |
|---|---|
| Needs | nothing |
| Produces | nothing |
| Works on | item 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.
| Setting | Type | Default | Description |
|---|---|---|---|
mode | string | "for" | Mode is for (an amount of time, the default) or until (a moment).one of for, until |
amount | integer | - | Amount and Unit are how long, for Mode for.minimum 1; maximum 129600 |
unit | string | "minutes" | Unitone of minutes, hours, days |
until | string | - | 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
Was this page helpful?