What is a concurrency limit?

A concurrency limit is the most sandboxes one account may run at the same time. When an account reaches it, a new request can fail with an error. Many providers set the limit per plan, and a paid plan or a support request can raise it.

Updated

How the limit works

Each running sandbox uses one slot of the limit. Stopping a sandbox frees its slot. Starting a stopped sandbox needs a free slot.

A session that reaches its maximum length, or an idle timeout that stops a sandbox, also frees its slot.

What happens at the limit

Some providers reject the new request with an error. Running sandboxes keep running. Retry the request after a short wait, and wait longer after each failed try.

Check the provider docs. Each provider can have a different rule.

How to raise the limit

Many providers set the limit per plan. A paid plan can give a higher limit. Some providers raise the limit after a request to their support team. Give the support team your current limit, the limit you need and your peak use.

Planning for the limit

Check the limit before you run many agents at once. A job that starts more sandboxes than the limit can fail. Plan the number of parallel sandboxes below the limit, or ask for a higher one first.

Related terms

All glossary terms

Related