> Documentation index: https://sema4.ai/docs/llms.txt
> Web page: https://sema4.ai/docs/v3/task-engine/worker-groups

# Worker groups and where runs go

Group the workers that can do the same work, and decide where each robot step runs.

**Audience:** workspace admins and builders

> **Task Engine is in private preview.** To get access, [contact us](https://sema4.ai/contact-us/).

## Worker groups

Workflows send robot work to a group, and any online worker in it picks it up.
Use a group when several machines can do the same work: they share it, run it in parallel, and cover for each other when one is offline.

Open **Task Engine**, then **Worker groups**.
Managing groups needs a workspace admin.

- **Create worker group**, and give it a name that says what its machines can reach, for example "AP invoices". Names are unique in the workspace.
- **Add a worker to this group** to choose a connected worker. A worker can belong to more than one group.
- **Remove** a worker from a group. It stays connected.
- **Rename** a group. Steps name a group by its ID, so renaming it changes nothing in your Workflows.
- **Delete** a group. Workflows that send robot work to it stop running robot steps until you pick another group.

> **Keep at least one online worker in every group a Workflow uses.**
> A step whose group has no online worker, including a group with no workers at all, fails as soon as it starts.

## Where a step runs

Each task package step says where it may run:

| The step names               | Who runs it                                                                                                                           | Parallel runs | When none can run it                                                               |
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------- | ---------------------------------------------------------------------------------- |
| **A worker group**           | Any idle, online worker in the group                                                                                                  | Allowed       | It waits while all of them are busy, and fails at once when none of them is online |
| **One worker**               | Only that worker, for a robot that needs a particular machine, such as the one with a licensed application or a fixed network address | Not allowed   | It waits while the worker is busy, and fails at once when it is offline            |
| **Neither** (**Any online**) | Any online worker in the workspace                                                                                                    | Not allowed   | It fails at once when no worker is online                                          |

A worker runs one robot at a time.
A step starts a robot run only on a worker that is idle, and never interrupts a busy one.
While it waits, the step's run shows **Waiting for a worker**.

## Run in parallel

Point a step at a group and allow parallel runs, and up to that many workers of the group take the step's items at once.
Each item runs once.
Each work item has its own limit, so ten work items at the same step, each allowed two parallel runs, can use up to twenty workers.
See [How work runs in parallel](https://sema4.ai/docs/v3/task-engine/parallel-runs.md).

## Cap what an application can take

A group's size is a hard limit across all work items: each worker runs one robot at a time.
To cap how many robots use an application at once, for example one with two licensed seats, give its steps a group with only that many workers.

## Plan your groups

- **Group by what the machines can reach,** not by Workflow: "ERP desktops", "SAP GUI", "Internal network". A step then names the reach it needs.
- **Keep at least two workers in a group** that production work depends on, so one machine's restart doesn't stop the work.
- **Use one worker only when the work truly needs that machine.** A step pinned to one worker stops when that machine does.
