---
title: "agent-has-active-task-runs"
description: "The agent is working on tasks."
---

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

# agent-has-active-task-runs

`https://docs.ragna.io/errors/agent-has-active-task-runs`

## When it happens

A request unlocks an agent that has task runs in progress.

## Response

| Member   | Value                      |
| -------- | -------------------------- |
| `status` | 409                        |
| `title`  | Agent has active task runs |

```json
{
  "type": "https://docs.ragna.io/errors/agent-has-active-task-runs",
  "title": "Agent has active task runs",
  "status": 409
}
```

## What the client can do

Stop the runs and unlock in one step with `?stopRuns=true`, or wait until the runs finish. See [Tasks](https://docs.ragna.io/content/tasks#agents-working-on-tasks).

Source: https://docs.ragna.io/errors/agent-has-active-task-runs/index.mdx
