How do I stop all my runs at once?
There's no single "cancel all" endpoint, but it's quick to script:
runs = requests.get(f"{BASE}/v1/runs?limit=100", headers=headers).json()["data"]
for r in runs:
if r["status"] in ("queued", "running"):
requests.post(f"{BASE}/v1/runs/{r['id']}/cancel", headers=headers)
The key needs runs:read and runs:write. An account has at most 5 runs in progress at once, so this is usually a handful of calls.
Learn more#
Related articles
Still need help?
Tried the steps above and still stuck? Email us. We usually reply within the first hour, and always within 24 hours. A full support team is with you.
Infrastructure questions, or permanent deletion of your data
infrastructure@clatterlabs.xyzFor deleting your whole account or the data of one service.