---
title: "Admin Jobs Reset Stuck"
method: POST
path: "/v1/admin/jobs/reset-stuck"
---

# Admin Jobs Reset Stuck

`POST /v1/admin/jobs/reset-stuck`

## Request

- Base URL: `https://api.storyflo.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.storyflo.com/v1/admin/jobs/reset-stuck`
- Auth: none declared

Reset every ``running`` job whose ``started_at`` is older than
``max_age_minutes`` (default 5) back to ``queued``. Recovers from the
case where a Fly machine restart kills a worker mid-render — without
this, those rows stay ``running`` forever and the operator has to SSH
in to SQL-update them by hand.

Recently-started jobs are left alone so we don't yank work out from
under a still-healthy worker.

## Query parameters

- `max_age_minutes` integer

## Headers

- `x-storyflo-email-token` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/storyflo/apis/storyflo-inference-router.md) · [All operations](https://skmtc.dev/storyflo/apis/storyflo-inference-router/llms.txt) · [OpenAPI document](https://skmtc.dev/storyflo/apis/storyflo-inference-router/revisions/c3a1a735ac7a?raw)
