Debounce Event

Single execution after delay

Debounce Event

AI-generated

Overview

This node implements a wait or delay functionality within an n8n workflow. It pauses the workflow execution for a specified amount of time (in seconds) before continuing. It optionally supports cooldown logic to manage repeated executions or rate limiting scenarios. This node is useful in scenarios where you need to introduce a delay between actions, such as waiting for an external process to complete, pacing API requests, or implementing retry mechanisms.

Use Case Examples

  1. Waiting 10 seconds before sending a follow-up email.
  2. Pausing a workflow for 5 seconds to avoid hitting API rate limits.
  3. Using cooldown logic to prevent repeated triggering of an action within a short time frame.

Properties

Name Meaning
Wait Amount The amount of time to wait or delay, specified in seconds.
Cooldown Logic A boolean flag to enable or disable cooldown logic, which can be used to manage repeated executions or rate limiting.

Output

JSON

  • workflowData
    • 0 - Contains the data of the item after the wait period has completed successfully.
    • 1 - Contains an empty array, representing no error or alternate data output.

Troubleshooting

  • If the node does not wait as expected, verify that the 'Wait Amount' property is set correctly in seconds.
  • If cooldown logic is enabled but not behaving as expected, check the workflow context or state management to ensure cooldown state is tracked properly.
  • Common errors might include invalid input types for 'Wait Amount' (should be a number) or misconfiguration of cooldown logic flag.

Discussion