Skip to content

Wait

Overview

The Wait node pauses the execution of the workflow for a specified duration in seconds before continuing to the next node. This allows for controlled delays between task executions when needed.


Purpose

Use this node to introduce a delay within your workflow, such as:

  • Waiting for an external system or process to complete.
  • Creating a pause between sequential API calls.
  • Adding intentional timing gaps to workflows to manage load or dependencies.

Inputs

InputTypeDescription
Duration to Wait in SecondsIntegerThe number of seconds to wait before completing the node execution. Example: 5

Outputs

This node does not produce any outputs. It completes successfully after the configured delay.


Execution Details

  1. Validation:

    • Validates the presence of user inputs.
    • Validates that Duration to Wait in Seconds is a valid integer.
  2. Delay Execution:

    • Converts the input duration from seconds to milliseconds.
    • Pauses execution using Thread.Sleep(waitTime) for the specified duration.
  3. Error Handling:

    • Returns failure if input is missing or not a valid integer.
    • Any unhandled exceptions result in node failure with the exception message returned.

Example Use Cases

  • Delaying workflow progression while waiting for an external job or process to finish.
  • Introducing pauses between API calls to avoid rate limiting.
  • Creating timing buffers in automation sequences to ensure reliable execution order.

Notes

⚠️ Important:

  • The delay is implemented using a blocking sleep, which may impact thread availability if used excessively. Consider workflow design implications when introducing large wait times.
  • Ensure that your overall workflow timeout settings accommodate the additional delay introduced by this node.

Known Limitations

  • This node uses Thread.Sleep which blocks the current thread; it does not use asynchronous delay. For very long delays or scalable wait implementations, consider designing alternative approaches.
  • No outputs are produced; the node solely introduces a delay.

Tentech 2024