Timer & Delay icon

Timer & Delay

Add delays or measure execution time in workflows

Delay

AI-generated

Overview

This node adds a delay or measures execution time within workflows. It is useful for scenarios where you need to pause the workflow for a specified duration or track the time at which a workflow step executes. For example, you can use it to introduce wait times between API calls or to log timestamps for performance monitoring.

Use Case Examples

  1. Adding a 5-second delay before continuing to the next step in a workflow.
  2. Measuring and recording the execution time of a workflow step by adding a timestamp field.

Properties

Name Meaning
Delay Amount Specifies the amount of delay to add before continuing the workflow.
Delay Unit Specifies the unit of time for the delay amount (milliseconds, seconds, or minutes).

Output

JSON

  • _delayed
    • amount - The amount of delay applied (only present when operation is delay).
    • unit - The unit of the delay applied (only present when operation is delay).
    • ms - The delay duration in milliseconds (only present when operation is delay).
      - The ISO timestamp added to each item when measuring execution time (only present when operation is measureTime).

Troubleshooting

  • If the delay amount is set to zero or a very small number, the delay might be imperceptible.
  • Ensure the delay unit matches the intended time scale to avoid unexpected wait times.
  • When measuring time, verify the timestamp field name does not conflict with existing fields to prevent data overwriting.

Discussion