# cap_idle

The script stopped making progress, so it was ended.

## What happened

A run has a limit on the time without making progress. When the script goes over, the sandbox stops it and the run ends with this code. `detail` names the cap (`idle_ms`), 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

Find what the script is waiting on, or looping on without moving forward, and remove it.

## Example

```json
{
  "request_id": "7d2b1c44-95a0-4e3b-8a6f-1c0d9e2f5a37",
  "ok": false,
  "error": {
    "code": "cap_idle",
    "message": "The script stopped making progress, so it was ended.",
    "detail": {
      "cap": "idle_ms",
      "used": 61000,
      "allowed": 60000
    }
  }
}
```
