Reclaim expired agent-run lease lanes (GET)
GET
/cron/reclaim-agent-runs
const url = 'https://example.com/api/cron/reclaim-agent-runs';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/cron/reclaim-agent-runsReturns any agent_run whose claim lease has lapsed back to queued so another worker can claim it. Protected by CRON_SECRET via x-cron-secret header.
Responses
Section titled “ Responses ”Reclaim sweep result
Media type application/json
object
ok
required
boolean
reclaimed
required
integer
run_ids
Array<string>
Missing or invalid CRON_SECRET