---
title: Concurrency
order: 13
description: "How many targets run at once. It is bounded by the pool's capacity and set with --concurrency, MAGUS_CONCURRENCY, or the concurrency config key."
tags: [glossary, execution-and-caching]
---

# Concurrency

How many targets run at once. It is bounded by the pool's capacity and set with
`--concurrency`, `MAGUS_CONCURRENCY`, or the `concurrency` config key.

## Example

```sh
magus run test . --concurrency 2
```

## Used in

<!-- BEGIN GLOSSARY USAGE (generated by glossary-usage-generate from the knowledge graph; edit the generator, not this list) -->

In the docs:

- [One exception: concurrency](../concepts/ci/providers.md#one-exception-concurrency)
- [Concurrency](../concepts/concurrency.md#concurrency)
- [Concurrency pool](../concepts/telemetry.md#concurrency-pool)
- [ADR 0001: bounded concurrency with recursive invocation](../decisions/0001-bounded-concurrency-with-recursive-invocation.md#adr-0001-bounded-concurrency-with-recursive-invocation)
- [Concurrency](../guides/integrations/server.md#concurrency)

<!-- END GLOSSARY USAGE -->

## See also

- [Pool](pool.md)
- [The broker and the daemon](../guides/integrations/server.md)
