Sleep Node
The Sleep Node is used to pause a workflow for a specific duration before continuing to the next step. It works synchronously, meaning the workflow will wait until the given time has passed and then proceed automatically.
This is useful when you need short delays between actions, such as throttling API calls, sequencing tasks, or adding small wait times in retry logic.
Functionalities
Pauses workflow execution for a set time.
Supports two units of time:
Milliseconds
Seconds
Accepts both static numeric values (e.g., 2, 500) and dynamic token values (e.g., variables or attributes from previous nodes).
Works synchronously—no external triggers or callbacks required.
Configuration Setup
Add the Sleep Node from the controls menu.
Sleep Amount
Enter a number (e.g.,
500
,2
).Or insert a dynamic numeric token (e.g., a variable or output from another node).
Sleep Unit
Select either Milliseconds or Seconds.
Save the configuration. The workflow will now pause for the defined duration at runtime.
Example
Scenario: Adding a 2-second delay before making an API call
Sleep Amount:
2
Sleep Unit:
Seconds
Behavior: The workflow pauses for 2 seconds, then proceeds to the API request node.
Scenario: Using a variable for delay
Sleep Amount:
{{SetVariable.waitTime}}
Sleep Unit:
Milliseconds
Behavior: The pause duration is taken dynamically from the variable
waitTime
.
Conclusion
The Sleep Node provides a simple way to add short, synchronous pauses in your workflow. It helps control timing between steps, avoid overloading external systems, and implement retry logic with controlled delays. By supporting both static and dynamic values, it adapts to a wide range of use cases without complexity.
Last updated