Actions2
Delay
AI-generatedOverview
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
- Adding a 5-second delay before continuing to the next step in a workflow.
- 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
_delayedamount- 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.