Unify Automations
Logo
Bulkhead

Bulkhead

Logo

3 mins READ

The Bulkhead setting caps the number of concurrent executions of a step to protect shared resources from bursts. A request that can't get a slot waits up to the Max Wait Duration you set, and then fails.

Overview

The Bulkhead pattern limits the number of concurrent executions of a step, preventing a sudden surge of requests from exhausting shared resources — memory, connection pools, downstream API capacity — and destabilizing other automations in the workspace.

bulkhead-1-final 1.png
bulkhead-1-final 1.png

The name comes from ship design: bulkheads compartmentalize a hull so that flooding in one section cannot sink the whole vessel. In automation terms, a bulkhead contains the resource consumption of one step so that a spike in its load cannot crowd out everything else running in the same workspace.

When the concurrency limit is reached, a new request waits for a slot to open. If no slot opens within the Max Wait Duration, the request fails with a bulkhead error ("permits exhausted").

How Bulkhead Works

Every time a step with Bulkhead turned on runs, it must acquire one of a limited number of slots. Without a bulkhead, there is no cap on how many executions of the same step can run simultaneously. A high-volume trigger source — a webhook receiving a burst of events, a schedule firing a batch loop — can spin up hundreds of concurrent calls, each consuming memory and holding open connections to external services.

With a bulkhead configured:

  1. Each new execution of the step checks whether a slot is free.

  2. If the number of active executions is below Max Concurrency, the step runs immediately.

  3. If the limit is already reached, the request waits for a slot, for up to the Max Wait Duration.

  4. When an execution finishes, or its Max Lease Time expires, its slot is released and a waiting request can take it. A request that is still waiting when the Max Wait Duration ends fails.

The effect is a controlled, steady throughput rather than an unbounded burst. Downstream systems — databases, APIs, internal services — receive a predictable load that stays within their capacity.

Note: Step executions that are waiting for a slot get one in the order they started waiting. An execution that is still waiting when the Max Wait Duration ends fails with a bulkhead error ("permits exhausted"); the limit applies to this step only, not to the whole run.

Configuration

Bulkhead is a per-step setting. Open the step, go to the Input tab, expand the advanced settings at the bottom, and select Bulkhead (Limit the number of concurrent requests). It limits concurrent executions of that step only, not of the whole automation.

bulkhead-2-final 1.png
bulkhead-2-final 1.png

Input Fields

Description

Max Concurrency

The maximum number of executions of this step that may run at the same time.

Max Lease Time

How long a resource or lock can be leased before it's automatically released. Once this duration expires, the lease ends even if the process hasn't completed. Choose Seconds, Minutes or Hours.

Max Wait Duration

The maximum time a request will wait to acquire a resource before timing out. If the resource isn't available within this duration, the request fails. Choose Seconds, Minutes or Hours.

Automation Settings Overview

Bulkhead is set on each step. The automation settings screen has these settings, which apply to the whole automation and control logging, timeouts, failure protection, and more:

Setting

Description

Log Level

Controls how much detail the automation records when it runs. The levels, from least to most detail, are Error, Warn, Info, Debug, and Trace. Use a lower level (Error/Warn) for normal running and raise it to Debug or Trace when investigating a problem.

Capture depth

Decides what is stored for each run: Run summary (the default) keeps a high-level record, Step details adds each step's status and timing, and Full trace adds each step's input and output payloads. More detail makes debugging easier but stores more data.

Enable Logging

A master toggle for run logging, separate from Capture depth. When enabled (the default), each run is recorded and appears in Run History and feeds the Insights dashboards and alerts. When disabled, future runs are not recorded.

Telemetry Metrics

Off by default. Turn it on, then add the metric configurations you want recorded against this automation as it runs. Telemetry is about aggregate measurement across many runs, not detailed per-run records.

Run Level Timeout

Sets the maximum time a single run is allowed to take before it is stopped. Protects against runs that hang or run far longer than expected.

Circuit Breaker

Stops the automation from repeatedly calling a failing or unresponsive system. It trips when the failure rate or slow-call rate over a count based or time based sliding window reaches your threshold. When it trips, calls fail fast; after the Wait duration in open state, it allows a few trial calls and resumes automatically if they succeed.

Execution Tier

Controls which execution tier (priority class) the automation runs on. Pick a Default Tier, or set a Header Key and map its values to tiers in Mappings to route each run dynamically based on a header on the incoming request.

Relationship to Other Automation Settings

Bulkhead works alongside, not in place of, other run-protection settings in the automation settings screen:

  • Run Level Timeout — caps how long a single run may take. Combined with Bulkhead, this prevents a stuck run from holding a concurrency slot for longer than needed.

  • Circuit breaker — makes calls fail fast after sustained failures, then recovers automatically. Bulkhead controls how many executions of a step run at once; the circuit breaker controls whether calls go through at all while a downstream system is failing.

  • Execution Tier — sets the execution priority class for the automation. Tier affects scheduling priority across automations; Bulkhead limits concurrency within a single step.

  • Log Level and Capture depth — control how much information is recorded for each run. When debugging Bulkhead behavior — for example, confirming that requests wait or fail as expected — raise the log level to Debug or Trace and set Capture depth to Step details or Full trace.

  • Enable Logging — the master toggle for run recording. Keep logging enabled when using Bulkhead so that runs appear in Run History for monitoring.

  • Telemetry Metrics — records the metric configurations you add, for trends across many runs such as run duration and throughput.

Notes

Bulkhead is a production-safety control for automations that are triggered at high volume or that call resource-constrained downstream systems. To make the most of it:

  • Set the concurrency limit based on the capacity of the most constrained resource the automation touches — for example, the connection pool size of a target database or the concurrent-request limit of an external API.

  • Pair Bulkhead with the Run Level Timeout setting so that a hung run does not hold a slot open indefinitely and stall the queue behind it.

  • Monitor queue depth over time; a persistently long queue indicates that the concurrency limit is too low for the trigger volume, or that individual runs are taking longer than expected.

  • Use the Tier setting together with Bulkhead when multiple automations compete for the same downstream resources — assign higher-priority automations a higher tier so they are scheduled ahead of lower-priority ones once their slots are free.

  • Do not set the concurrency limit higher than the downstream system can reliably handle — the purpose of Bulkhead is to protect those systems, not simply to maximize throughput.

FAQs

Where do I change an automation's settings?

Open the automation's Workflow settings. These settings apply to the whole automation rather than an individual step. Save your changes, then deploy the automation for them to take effect.

Why are my run-history details missing?

Run records appear only when Enable Logging is turned on. Increase Capture depth to Step details or Full trace to capture more execution details for future runs.