# cap_processes

The script started more processes than allowed.

## What happened

A run has a limit on the number of processes. When the script goes over, the sandbox stops it and the run ends with this code. `detail` names the cap (`processes`), how much was used and how much was allowed. The caps for a run are in the code sandbox section of the [Limits](https://oathra.dev//docs/limits) page.

## What to do

Do the work in the script itself instead of starting other processes.

## Example

```json
{
  "request_id": "7d2b1c44-95a0-4e3b-8a6f-1c0d9e2f5a37",
  "ok": false,
  "error": {
    "code": "cap_processes",
    "message": "The script started more processes than allowed.",
    "detail": {
      "cap": "processes",
      "used": 70,
      "allowed": 64
    }
  }
}
```
