Delay step

Also known as: wait step

On this page 8

A delay step, also called a wait step, is a workflow action that pauses a running automation for a defined period, until a specific date and time, or until an expected event occurs, and then resumes execution at the next step. In automation platforms, the delay step is the basic tool for controlling timing inside a workflow: it spaces out follow-up messages, waits for external systems to finish their work, respects rate limits and aligns actions with business hours.

A delay step does not keep a process running in memory while it waits. Mature workflow engines persist the workflow state to storage, schedule a wake-up and release resources, which is why a single workflow can wait for minutes, days or even months without consuming compute. Understanding this mechanism explains both the power of delay steps and their most common failure modes.

How a delay step pauses and resumes a workflow

When execution reaches a delay step, the engine records the workflow state and a resume time, then stops processing that run. The saved state includes workflow variables, the position in the step sequence and any data collected from the trigger or earlier actions.

A scheduler or timer service checks for runs whose resume time has passed and places them back in the execution queue. The run then continues from the step after the delay, using the stored data. Because resumption depends on a queue, the actual resume moment is approximate rather than exact, typically within seconds to a few minutes of the target, depending on platform load and polling interval.

This design has a practical consequence: data captured before the delay may be stale when the workflow resumes. A customer who was eligible for a reminder on Monday may have completed the purchase by Wednesday, so robust designs re-read critical data after a long wait.

Types of delay steps

Automation platforms offer several delay variants, each suited to a different timing problem. The table compares the forms found in most workflow builders, whether low-code or code-based.

VariantHow the resume time is setTypical use
Fixed duration delayA set interval, such as 2 hours or 3 daysSpacing follow-up messages
Delay until date or timeAn absolute timestamp or a time of daySending at 9:00 local time
Relative date delayOffset from a stored date fieldReminder 7 days before renewal
Business hours delayNext open window in a working calendarAvoiding night or weekend actions
Wait for eventArrival of a webhook or record changeWaiting for a payment confirmation
Wait for condition with timeoutCondition becomes true or a deadline passesApproval or escalation flows
Common delay step variants

The last two variants differ from pure delays because an external signal ends the wait. They should always include a timeout, otherwise a missing event leaves the run suspended indefinitely and quietly consumes workflow quotas.

Key parameters and their effects

Configuring a delay step correctly means setting a handful of parameters that determine its behavior. Small differences in these settings often explain why two seemingly identical workflows behave differently.

ParameterTypical valuesWhat it affects
Duration or target timeSeconds to monthsWhen the run resumes
Time zoneAccount, user or record time zoneLocal time of the resumed action
Business calendarWorking days, holidaysWhether nights and holidays are skipped
TimeoutMinutes to weeksMaximum wait for an event or condition
Maximum delay limitPlatform-specific, often 30 days to 1 yearLongest permitted pause
Behavior on editKeep old version or migrate runsWhich definition waiting runs follow
Delay step parameters and what they control

The time zone setting causes the most production incidents. A delay until 9:00 evaluated in the server time zone may resume in the middle of the night for customers on another continent, and daylight saving changes can shift a recurring delay by an hour.

A delay step controls when the next action runs, while neighboring elements decide whether, how often or in what order actions run. The comparison helps designers choose the right element instead of approximating one with another.

ElementPrimary purposeKey difference from a delay step
Delay stepPause the current runChanges timing only
Scheduled triggerStart a new run at set timesCreates runs instead of pausing one
ConditionChoose a path based on dataEvaluates once, with no waiting
Loop stepRepeat actions over itemsIterates; may contain delays inside
Approval workflowWait for a human decisionSpecialized event wait with assignees
Delay step versus neighboring workflow elements

A frequent anti-pattern is a loop with a short delay used for polling, for example checking an order status every minute. Where the external system can send a webhook, a wait-for-event step is cheaper and more reliable, because it avoids hundreds of redundant runs and API calls.

Designing reliable delays

Reliable delay design rests on re-validation, idempotency and observability. The following practices prevent most timing-related defects in long-running workflows.

  • Re-check conditions after the delay, for example confirming that a cart is still unpaid before sending a reminder.
  • Make resumed actions idempotent, so a duplicate resume does not send a message twice.
  • Store dates as timestamps with explicit time zones rather than as local text.
  • Add a timeout and a fallback path to every wait for event or condition.
  • Log the planned and actual resume times in the execution log to detect drift.

Teams should also decide in advance what happens to waiting runs when the workflow is edited. Some platforms keep each run on its original version, while others apply the new definition, which can skip or repeat steps for thousands of suspended runs.

Common problems with delay steps

Most delay defects appear only in production, because tests rarely wait for real durations. The table links typical symptoms to their underlying causes and fixes.

SymptomLikely causeFix
Messages arrive at nightServer time zone usedSet the recipient time zone
Reminder sent after purchaseStale data after the waitAdd a condition after the delay
Runs never finishEvent wait without timeoutAdd a timeout branch
Duplicate actionsRetry after a resume failureUse idempotency keys
Testing takes daysReal durations in test runsUse shortened test durations
Delay step symptoms, causes and fixes

Understanding it simply

A delay step tells an automated process to wait before doing the next thing. It works like a kitchen timer. You put the dish in the oven, set the timer and come back when it rings.

The wait can be a fixed time, such as two days, or it can last until something happens, such as a customer paying an invoice. The key point is timing. A delay step makes sure each action happens at the right moment, not too early and not too late.

Applied in practice

An online training provider sends a welcome email when a learner registers. The workflow then uses a fixed 3-day delay before checking whether the learner has opened the first lesson. If not, a condition routes the run to a reminder email, scheduled with a delay until 9:00 in the learner’s time zone.

A later step waits for a course completion event with a 30-day timeout. Learners who finish receive a certificate at once, while those who reach the timeout are offered a call with a tutor. After the team added the post-delay condition and local time zones, complaints about irrelevant or late-night reminders dropped sharply, and course completion rates rose over the following quarter.