Cloudflare 524 on a Sume jobs_wait: transport, not job outcome
A 524, 522, 523 or 525 on jobs_wait is a transport failure, not a job result. Re-issue jobs_wait on the same ids or read jobs_status once. Never resubmit.

A 524 (or 522 / 523 / 525) on a Sume jobs_wait call is a transport failure, never a job outcome. The job is still running and still billing, so re-issue jobs_wait on the same ids or read jobs_status once. Do not resubmit the paid create.
Cloudflare's side is from its Error 524 page and Sume's from Jobs and results, both read 2026-10-01.
What does Cloudflare say a 524 is?
Cloudflare documents Error 524 as: it connected to the origin, but the origin did not provide an HTTP response before the default 125 seconds Proxy Read Timeout. Among its suggestions is to implement status polling of large HTTP processes to avoid hitting the error.
Nothing in that description says the work failed. It says the response did not arrive in time.
Why does jobs_wait have a bounded slice?
On remote MCP, timeout_seconds defaults to 50 and is capped at 55. The docs explain that a wait is one HTTP request held open with nothing transferring, and every edge eventually closes such a request. A larger value is clamped rather than rejected, and the response reports it in wait_slice_clamped. When a slice ends, the answer is wait_slice_expired, and you retry with the same ids.
What do I do when I see a 524?
| Situation | Do this |
|---|---|
524, 522, 523 or 525 on jobs_wait | Treat as transport; re-issue jobs_wait on the same ids |
| You want a status without holding a request | Read jobs_status once |
Slice ends with wait_slice_expired | Retry jobs_wait with the same ids |
| Temptation to retry the create | Never resubmit the paid create |
| Temptation to report failure | Do not report the job blocked |
How long a render can I wait for?
The docs say to wait for a ten-minute render by repeating the wait, not by asking for a longer one. Each call holds at most 55 seconds. For fan-outs, one batch jobs_wait with job_ids beats N single waits; see MCP jobs_wait for long video jobs.
Which Sume tools are safe to repeat?
Job reads (jobs_list, jobs_get, jobs_status, jobs_result, jobs_events, jobs_wait) are read tools, listed in MCP tools and gates. Repeating them does not create a second job. The create is the call that needs a stable idempotency_key, and the same key is reused only for the same operation and payload.
Sources
Related posts
More in Developers
- Luma API 429 requests per minute: sliding window vs Sume
Luma counts requests in a sliding 60-second window and returns 429 if RPM or concurrent jobs fails. Sume returns 429 rate_limited: back off, reuse the key.
- Luma API concurrent jobs limit vs Sume plan concurrency
Luma caps active generations per API client and answers 429 when full. Sume ties concurrency to your plan and queues extra jobs until queue_full.
- Luma API video URL expires after 1 hour: what to do on Sume
Luma Agents API video URLs are presigned and expire after 1 hour. On Sume, a completed job is fetched with your API key from the /content endpoint.
- Luma API X-Request-Id vs Sume x-sume-request-id
Luma's X-Request-Id echoes your header or is generated. Sume sends x-sume-request-id on every response; quote it, plus error.code, when you contact support.
Written by Sume