Skip to content

Wait ​

Delays each record by a fixed number of milliseconds, then passes it on unchanged. Use it for simple pauses between steps or crude rate limiting.

Pins ​

PinKindTypesDescription
InputinputanyRecord to delay.
Outputoutputsame as inputThe same record and metadata after the wait.

Configuration ​

FieldTypeDefaultDescription
WaitTimeMsinteger1000Wait time in milliseconds (positive; intended maximum 86400000 = 24 h).

Behaviour ​

  • Blocks the calling thread for WaitTimeMs (thread sleep), then calls Output synchronously.
  • Each record waits independently; parallel records wait in parallel on their own threads.

Notes ​

  • The wait cannot be interrupted: stopping the flow does not end a running wait early (the record is not passed on if the flow has stopped meanwhile).
  • The blocked thread is not available for other work; avoid long waits for many parallel records. For periodic work use a Timer, for retries the Retry component.
  • The maximum is not enforced by the editor. 0 passes the record on immediately; negative values make the component fail.

Example ​

json
{ "WaitTimeMs": 500 }

Range → Http client → Wait (throttle requests)

Viaducta documentation