Skip to main content

Pause workflow execution with the Wait block

Learn how to use the Wait block to pause workflow execution.

Use the Wait block to pause workflow execution for a specified amount of time. This block is useful for creating a single process that might need to take several hours, days, or weeks. For example, you could use the Wait block to:

  • Grant a temporary access token, and revoke it after 24 hours.
  • Send abandoned cart emails 1 hour after a customer leaves the website, and again after two days.
  • Add a delay between several API calls in a loop to avoid hitting rate limits.

Define the duration of the Wait in seconds, minutes, hours, or days. You can use a number or a JavaScript expression that evaluates to a number to define the duration. The maximum wait duration is 60 days.

Workflows with Wait blocks are still subject to timeouts. For asynchronous workflow runs with Wait blocks, the timeout is 60 days. For synchronous workflows runs, the timeout is 15 minutes up to executing the first webhook Response block. The remainder of the workflow follows the asynchronous timeout.

After the Wait block finishes executing, the workflow continues execution of the blocks downstream. Wait blocks only pause execution for blocks that are directly downstream, and they not do not affect blocks that are executed in parallel.