> ## Documentation Index
> Fetch the complete documentation index at: https://docs.erna.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# maxConcurrentAssignments

```ts theme={null}
function maxConcurrentAssignments(assignments, opts?): RuleEntry<"max-concurrent-assignments", object & MaxConcurrentAssignmentsOptions>;
```

Caps how many targeted assignments may overlap at the same time, which models
capacity rather than minimum staffing.

## Parameters

<ResponseField name="assignments" type="number" required>
  Maximum number of concurrent overlapping assignments.
</ResponseField>

<ResponseField name="opts">
  [`RuleOptions`](./RuleOptions) & `object`

  Optional scope and time-window settings.
</ResponseField>

## Returns

`RuleEntry`\<`"max-concurrent-assignments"`, `object` & [`MaxConcurrentAssignmentsOptions`](./MaxConcurrentAssignmentsOptions)>

Applies an upper bound to simultaneous assignments. Pair a lower-bound
`cover(...)` with `maxConcurrentAssignments(...)` when a schedule needs both
minimum coverage and maximum concurrency.

Unlike [maxShiftsPerDay](maxShiftsPerDay), this limits simultaneous overlap, not total
assignments on a day.
