---
title: "Sync Running Runs"
method: POST
path: "/api/internal/agents/sync"
tags: ["Agents"]
---

# Sync Running Runs

`POST /api/internal/agents/sync`

Reconcile stale agent runs. Called by Kubernetes CronJob.
Internal endpoint, no auth (relies on cluster-internal access).

Two passes:
1. Re-dispatch stale 'pending' runs — messages lost during worker restart
   (Dramatiq acks on receive, so restarts lose in-flight messages).
2. Timeout stale 'running' runs — worker crash without Shutdown handler.

## Response `200`

Successful Response

- unknown

---

[API](https://skmtc.dev/explee/apis/explee-api.md) · [All operations](https://skmtc.dev/explee/apis/explee-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/explee/explee-api/revisions/f169bc6e9447/schema)
