Skip to content
getgeolens.com

Cleanup Stale Jobs

POST
/jobs/cleanup/stale/
curl --request POST \
--url https://example.com/api/jobs/cleanup/stale/ \
--header 'Authorization: Bearer <token>'

Fail all stale jobs: pending >1h or running >1h.

Admin-only. Use after a failed bulk import to clean up orphaned jobs.

Successful Response

Media type application/json
StaleCleanupResponse
object
pending_failed
required
Pending Failed
integer
running_failed
required
Running Failed
integer
total_cleaned
required
Total Cleaned
integer
Example generated
{
"pending_failed": 1,
"running_failed": 1,
"total_cleaned": 1
}