---
title: "Check run status"
description: "How to poll pipeline run status and interpret committed operations in Engram."
url: https://docs.weaviate.io/engram/guides/check-run-status
---

# Check run status

> [!WARNING]
>
> **Engram is being sunset**
>
> We have decided to sunset Engram. Existing projects will continue to work until December 31, 2026. It is no longer possible to create new Engram projects.

When you [store memories](https://docs.weaviate.io/engram/guides/store-memories), Engram processes them asynchronously through a [pipeline](https://docs.weaviate.io/engram/concepts/pipelines). Each request returns a `run_id` that you can use to track progress.

> [!TIP]
>
> In most cases, you don't need to poll for completion — memories are eventually consistent and will be available for search once the pipeline finishes. Check the initial response from `memories.add` to catch immediate errors. Use `runs.get` only when you need to confirm that a specific run has completed, such as during testing or debugging.

**All examples below use a connected `client`**

See [Connect to Engram](https://docs.weaviate.io/engram/quickstart#step-3-connect-to-engram) for how to instantiate one.

**Python**

```py
import os
from engram import EngramClient

client = EngramClient(api_key=os.environ["ENGRAM_API_KEY"])
```

**Python (Async)**

```py
import os
from engram import AsyncEngramClient

client = AsyncEngramClient(api_key=os.environ["ENGRAM_API_KEY"])
```

**Curl**

```bash
export ENGRAM_API_KEY="eng_..."
```

## Poll a run

**Python**

```py
status = client.runs.wait(run.run_id)

print(status.run_id)
print(status.status)
print(status.committed_operations)
```

**Python (Async)**

```py
status = await client.runs.wait(run.run_id)

print(status.run_id)
print(status.status)
print(status.committed_operations)
```

**Curl**

```bash
curl https://api.engram.weaviate.io/v1/runs/{run-id} \
  -H "Authorization: Bearer $ENGRAM_API_KEY"
```

### Response

```json
{
  "run_id": "run-uuid",
  "status": "completed",
  "group_id": "group-uuid",
  "user_id": "user-uuid",
  "starting_step": 1,
  "input_type": "string",
  "committed_operations": {
    "created": [
      {
        "memory_id": "memory-uuid-1",
        "committed_at": "2025-01-01T00:00:01Z"
      }
    ]
  },
  "created_at": "2025-01-01T00:00:00Z",
  "updated_at": "2025-01-01T00:00:01Z"
}
```

## Run statuses

| Status | Meaning |
| - | - |
| `running` | Pipeline is actively processing the content |
| `in_buffer` | Run is paused at a buffer step, waiting for a trigger to continue |
| `completed` | All operations have been committed successfully |
| `failed` | An error occurred during processing |

## Committed operations

When a run completes, the `committed_operations` field tells you exactly what changed:

- **`created`** — New memories that were added to storage.
- **`updated`** — Existing memories that were modified (e.g. merged or refined).
- **`deleted`** — Memories that were removed (e.g. superseded by an update).

Each entry includes the `memory_id` and a `committed_at` timestamp.

## Handling failures

If a run fails, the `error` field contains a description of what went wrong.

```json
{
  "run_id": "run-uuid",
  "status": "failed",
  "group_id": "group-uuid",
  "user_id": "user-uuid",
  "starting_step": 1,
  "input_type": "string",
  "error": "extraction failed: invalid input format",
  "created_at": "2025-01-01T00:00:00Z",
  "updated_at": "2025-01-01T00:00:01Z"
}
```
