Timer Node
Timer Node
Section titled “Timer Node”Module ID: ion.action.timer
The Timer node pauses flow execution for a specified duration before continuing.
Overview
Section titled “Overview”Use the Timer node when you need to add delays between actions, such as waiting for external systems to process data, implementing retry backoffs, or scheduling timed sequences.
Handles
Section titled “Handles”| Handle | Description |
|---|---|
input | Data to pass through after delay |
Outputs
Section titled “Outputs”| Handle | Description |
|---|---|
output | Original data + timer metadata |
error | Invalid timer configuration |
Configuration
Section titled “Configuration”// node.data structure{ minutes: number, // 0-15 seconds: number // 0-59}Constraints
Section titled “Constraints”| Constraint | Value |
|---|---|
| Maximum duration | 15 minutes (900 seconds) |
| Minimum duration | 0 seconds |
Example Configuration
Section titled “Example Configuration”Wait 30 seconds:
{ "minutes": 0, "seconds": 30}Wait 5 minutes:
{ "minutes": 5, "seconds": 0}Wait 2 minutes and 30 seconds:
{ "minutes": 2, "seconds": 30}Output Data
Section titled “Output Data”After the delay completes, the output includes metadata:
{ "duration": "2m30s", "completed_at": "2024-01-15T10:30:00Z"}Behavior
Section titled “Behavior”- Receives input data
- Validates timer configuration
- Calculates total duration from minutes + seconds
- Blocks execution for the duration
- After delay, outputs to
outputhandle
sequenceDiagram participant F as Previous Node participant T as Timer participant N as Next Node
F->>T: Data Note over T: Waiting 30s... T->>N: Data + metadataCommon Patterns
Section titled “Common Patterns”Retry with Backoff
Section titled “Retry with Backoff”[API Call] → error → [Timer: 30s] → [Retry API Call]Rate Limiting
Section titled “Rate Limiting”[Iterator] → [API Call] → [Timer: 1s] → [Continue]Staged Processing
Section titled “Staged Processing”[Step 1] → [Timer: 5m] → [Step 2] → [Timer: 5m] → [Step 3]Error Cases
Section titled “Error Cases”| Error | Cause |
|---|---|
| ”node data is not a map” | Configuration format invalid |
| ”minutes must be a number” | Minutes value is not numeric |
| ”seconds must be a number” | Seconds value is not numeric |
| ”minutes and seconds must be non-negative” | Negative values provided |
| ”total delay must not exceed 15 minutes” | Duration > 900 seconds |
See Also
Section titled “See Also”- Iterator Node - For processing arrays
- Flow Nodes Overview