Skip to main content

Controls

A control step shapes the flow of events through a workflow. The studio offers three controls: dedupe, rate limit, and wait. Place a control between a condition and an action to keep a destination from receiving repeats or bursts.

Control typesDirect link to Control types​

ControlSettingIntended use
DedupeDeduplication windowSkip a repeat of the same event within the window
Rate limitMax events per window, and a rate limit windowLimit how many events pass in the window. Use it when a service has rate limits
WaitWait durationPause the path before the next step

The studio starts a new control step as a dedupe control with a 5 minute window.

Windows and limitsDirect link to Windows and limits​

The window or duration menu offers 1 minute, 5 minutes, 10 minutes, 30 minutes, 1 hour, 4 hours, and 24 hours. The studio accepts these limits:

SettingAllowed value
Dedupe windowUp to 24 hours
Rate limit windowUp to 24 hours
Max events per windowA whole number from 1 to 10,000
Wait durationUp to 24 hours

Every value must be a positive whole number of milliseconds or events.

Dedupe and fingerprintsDirect link to Dedupe and fingerprints​

Dedupe recognizes a repeat by the event's fingerprint. Put an enrichment step with the fingerprint enricher before the dedupe control. The studio shows the same tip when you pick dedupe.

Use a deduped edge for the path a repeat takes, and connect it to a terminal with the outcome suppressed so the run records why nothing was sent.

LoopsDirect link to Loops​

A workflow can contain a cycle, for example a retry path. The studio rejects a cycle unless the graph also contains a wait, dedupe, or rate limit control. Without one, a cycle can run without bound.

Test runs and live deliveryDirect link to Test runs and live delivery​

In Test, a control step passes the sample event through and shows its input and output. It does not hold the event, count earlier runs, or suppress a repeat, so a single test cannot show a dedupe or a rate limit taking effect. For live events, each action has its own duplicate setting and each queued delivery carries an idempotency key that includes the investigation and the event version. See Actions and Test runs and live delivery.

To keep a noisy source quiet, narrow the trigger's event types and sources, and branch with a condition so only the events you want reach an action.

NextDirect link to Next​