Three RunPod serverless failure modes look like job errors but aren't. HTTP 409 "Endpoint is paused (max_workers=0)" means the endpoint has zero allowed workers, set by you or by RunPod after 7 idle days. Scale-to-zero cold starts took 172–234 s of queue time in our runs. And "no kernel image" CUDA failures are worker-specific: retry them.

We run GPU motion-capture inference (GVHMR, plus a two-person variant) on RunPod serverless behind a Postgres-backed job worker for a sports video analysis product. Everything below comes from our worker code, our ops notes and the raw status payloads we logged while building it. Endpoint IDs, job IDs and keys are removed; nothing else is changed.

What does RunPod HTTP 409 "Endpoint is paused (max_workers=0)" mean?

It means the endpoint's Max Workers setting is 0, so RunPod rejects every /run submit before a job exists. It is an endpoint-level state, not a problem with your payload, and nothing heals it automatically: every request keeps failing until someone raises max workers above 0 in the console or through the API.

This is the exact body our worker logged, twice, on two different end-to-end test runs:

RunPod HTTP 409: {"status":409,"title":"Conflict","detail":"Endpoint is paused (max_workers=0). Set max_workers > 0 to accept work.","code":"ENDPOINT_PAUSED"}

There are two ways to land here. You can do it to yourself: workersMax=0 is the off switch for GPU spend, and our own endpoint script sets that value through the API. RunPod also does it for you: per the RunPod endpoint settings documentation, an endpoint with no requests for 3 days is cut to 2 max workers with an email, and after 7 days max workers is set to 0, where it stays until you raise it yourself.

Why the 409 is easy to misread

Our HTTP layer classified errors the obvious way: 5xx, 408 and 429 are transient, every other 4xx is permanent. That is correct for a malformed payload or a bad key. For a paused endpoint it is wrong in a costly way, because every queued item gets marked failed with the 409 text, and the user sees a "processing failed" badge on a video that never reached a GPU.

def _call(method, path, clip_type="single", **kw):
    key, ep = _cfg(clip_type)
    try:
        r = requests.request(method, f"{API}/{ep}/{path}",
                             headers={"Authorization": f"Bearer {key}"}, timeout=60, **kw)
    except requests.RequestException as e:
        raise Transient(f"RunPod network error: {_redact(str(e))[:300]}")
    if r.status_code >= 500 or r.status_code in (408, 429):
        raise Transient(f"RunPod HTTP {r.status_code}: {_redact(r.text)[:300]}")
    if r.status_code >= 400:
        raise Permanent(f"RunPod HTTP {r.status_code}: {_redact(r.text)[:300]}")   # 409 lands here
    ...

The fix: branch on the error code, not the status code

RunPod gives you a machine-readable "code":"ENDPOINT_PAUSED". Check it before the generic 4xx branch and raise a third exception class. The job loop should treat it as "stop claiming work and alert", not as a per-job failure, and it should not consume a retry attempt.

class EndpointPaused(Exception):
    """Endpoint has max_workers=0. Not the job's fault: hold the queue, page a human."""

if r.status_code == 409:
    try:
        code = r.json().get("code")
    except ValueError:
        code = None
    if code == "ENDPOINT_PAUSED":
        raise EndpointPaused(r.json().get("detail", "endpoint paused"))

To unpause from a script, this is what we ran against RunPod's GraphQL API. It reads the endpoint's current config first and sends every field back, because we did not want the mutation to quietly reset anything we left out. The only field that changes is workersMax.

import os, sys, requests

G = "https://api.runpod.io/graphql"
KEY = os.environ["RUNPOD_API_KEY"]
ENDPOINT_ID = os.environ["SPARRING_ENDPOINT_ID"]

def gq(q):
    return requests.post(G, params={"api_key": KEY}, json={"query": q}, timeout=30).json()

r = gq('{myself{endpoints{id name templateId gpuIds workersMax workersMin idleTimeout '
       'scalerType scalerValue locations networkVolumeId executionTimeoutMs}}}')
e = [x for x in r["data"]["myself"]["endpoints"] if x["id"] == ENDPOINT_ID][0]
print(e)

wm = int(sys.argv[1])          # 0 = pause (off switch), N = resume
loc = f'locations:"{e["locations"]}",' if e.get("locations") else ""
m = (f'mutation{{saveEndpoint(input:{{id:"{e["id"]}",name:"{e["name"]}",'
     f'templateId:"{e["templateId"]}",gpuIds:"{e["gpuIds"]}",workersMax:{wm},workersMin:0,'
     f'idleTimeout:{e["idleTimeout"]},scalerType:"{e["scalerType"]}",'
     f'scalerValue:{e["scalerValue"]},{loc}}}){{id workersMax}}}}')
print(gq(m))

If you want to prevent the automatic 7-day pause instead, the docs say any incoming request resets the idle timer. We chose not to add a keep-alive ping: on a scale-to-zero endpoint each ping is a paid cold start. A low-traffic endpoint that pauses itself is fine, as long as the 409 pages someone instead of failing user jobs.

How long is a RunPod serverless cold start in 2026? Our measured numbers

On our scale-to-zero GPU endpoints, two genuinely cold jobs waited 171.7 s and 233.7 s in the queue before a worker picked them up. Warm jobs waited 0.13–1.5 s. Execution itself took 24–112 s. On a cold job the queue wait can be most of the wall-clock time, and our ops notes treat 3–9 minutes of cold start as normal.

These are the delayTime / executionTime values (ms) from every status payload we logged during development. In RunPod's job-state documentation, delay time runs from when a request enters the queue until a worker picks it up, including that worker's cold start if one had to boot.

JobdelayTimeexecutionTimeStatusReading
Two-person track detection171,663 ms24,394 msCOMPLETEDCold: 88% of wall time was queue
Two-person scene, hand estimation233,735 ms111,955 msCOMPLETEDCold: 68% of wall time was queue
Two-person run25,723 ms78,869 msCOMPLETEDWorker already booting
Two-person run9,729 ms73,934 msCOMPLETEDPartly warm
Two-person run4,643 ms89,371 msCOMPLETEDPartly warm
Single person, hand estimation1,540 ms71,384 msCOMPLETEDWarm
Two-person run162 ms85,079 msCOMPLETEDWarm
Two-person run133 ms56,116 msCOMPLETEDWarm
Two-person run (bad worker)196 ms5,703 msFAILEDSee the CUDA section below

The cold detection job's poll log shows the shape from the client side: IN_QUEUE at 11 s, IN_PROGRESS at 174 s, COMPLETED at 204 s. If you had sized a timeout around the 24-second execution, it would have killed a healthy job seven times over.

The obvious fix is one active worker, which RunPod's docs say removes cold starts, and it is billed continuously. For a workload that is bursty and asynchronous (a user uploads a clip and gets a notification later), we chose scale-to-zero plus honest timeouts over paying for an idle GPU around the clock. For a synchronous, user-facing request path, we would make the opposite call.

Why should your client treat IN_QUEUE as healthy for up to 25 minutes?

Because on a scale-to-zero endpoint, IN_QUEUE is what a cold start looks like from outside. Give the queue phase its own deadline (ours is 25 minutes, SPARRING_QUEUE_S=1500) and only start the execution timeout (15 minutes) when the job flips to IN_PROGRESS. A single timeout from submit either kills cold jobs or lets hung jobs run too long.

This is the polling loop from our worker, lightly trimmed. Two details matter most. The deadline resets on the first IN_PROGRESS, and on any timeout the loop cancels the RunPod job before giving up, so you don't pay for GPU time on a result nobody will collect.

QUEUE_S   = float(os.environ.get("SPARRING_QUEUE_S", "1500"))   # max wait IN_QUEUE from submit
TIMEOUT_S = float(os.environ.get("MOCAP_TIMEOUT_S", "900"))     # max once IN_PROGRESS

def wait_for_job(job, job_id):
    sparring = job["clip_type"] == "sparring"
    deadline = time.monotonic() + (QUEUE_S if sparring else TIMEOUT_S)
    running, delay, errors = False, 3.0, 0
    while True:
        if time.monotonic() > deadline:
            runpod_cancel(job_id, job["clip_type"])            # stop paying for it
            lim = QUEUE_S if (sparring and not running) else TIMEOUT_S
            raise Transient(f"RunPod job {job_id} did not finish within {int(lim // 60)} min"
                            + (" (still IN_QUEUE)" if sparring and not running else ""))
        try:
            data = runpod_status(job_id, job["clip_type"])
            out = _interpret(data, job_id)
            errors = 0
            if sparring and not running and data.get("status") == "IN_PROGRESS":
                running = True
                deadline = time.monotonic() + TIMEOUT_S       # execution clock starts now
        except Transient:
            errors += 1
            if errors >= 5:
                raise
            out = None
        if out is not None:
            return out
        STOP.wait(delay)
        delay = min(15.0, delay * 1.4)                         # 3 s -> 15 s backoff

Two more rules came out of this. First, persist the RunPod job ID as soon as /run returns. When our worker restarts and finds a row with a job ID, it checks /status first and resumes if the job is IN_QUEUE, IN_PROGRESS or COMPLETED. Without that, a deploy during a cold start submits a second job and you pay twice. Second, keep your queue deadline well under the job TTL. RunPod's TTL timer starts at submission, not execution (24 hours by default), so a long queue eats into the job's remaining lifetime.

We use the same idea one layer up for the motion data itself. Our post on smoothing GVHMR mocap jitter with quaternion Savitzky-Golay covers what happens to the output once these jobs complete.

What does "CUDA error: no kernel image is available for execution on the device" mean on a RunPod worker?

It means the container's compiled CUDA kernels don't include the compute capability of the GPU the job landed on. On a serverless endpoint that allows several GPU types, it fails on some workers and succeeds on others with an identical payload. We saw it fail in 5.7 seconds, then pass on a re-run with no change.

The exact payload from that job:

11 FAILED
{'delayTime': 196, 'executionTime': 5703, 'status': 'FAILED'} CUDA error: no kernel image is available for execution on the device
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.

As the PyTorch forum thread on this error explains, it is raised when you run CUDA code that wasn't built for the device's compute capability. That makes the error deterministic for each GPU type. It looks random per job because RunPod treats your GPU list as a prioritized fallback: when the first choice is unavailable, the job goes to the next type. The status payload we logged didn't say which GPU the failing worker had. Successful payloads do include a workerId, so log it on every terminal status. That is the only way to connect a run of failures to one machine.

On a separate investigation run the same thing happened again: one variant failed on a bad worker, and the re-run with the same input completed normally. The same input produced two different outcomes, so the cause was the worker, not the payload.

Retry is the mitigation; the GPU list is the fix

Our worker's current rule is that a FAILED job is permanent, which is correct for a corrupt video and wrong here. The change we're making is a narrow allowlist of worker-specific signatures that count as transient, so they get retried within the normal attempt cap. Because the failure takes about 6 seconds, the retry costs almost nothing.

WORKER_FAULTS = (
    "no kernel image is available for execution on the device",
)

def _interpret(data, job_id):
    status = data.get("status")
    if status == "COMPLETED":
        out = data.get("output")
        if not isinstance(out, dict) or out.get("error"):
            raise Permanent(f"RunPod job error: {out.get('error') if isinstance(out, dict) else out}")
        return out
    if status == "FAILED":
        err = str(data.get("error") or "")
        if any(sig in err for sig in WORKER_FAULTS):
            raise Transient(f"RunPod worker fault (retry on another worker): {err[:300]}")
        raise Permanent(f"RunPod job FAILED: {err}")
    if status in ("CANCELLED", "TIMED_OUT"):
        raise Transient(f"RunPod job {status}")
    return None                                   # IN_QUEUE / IN_PROGRESS

We kept the allowlist exact-match on purpose. A broad rule like "any CUDA error is transient" would also retry real out-of-memory failures caused by an oversized input, which fail the same way on every worker and just burn attempts. The lasting fix is upstream: build the image for every architecture in your endpoint's GPU list (for PyTorch extensions, TORCH_CUDA_ARCH_LIST), or remove the GPU types the image doesn't support. We hit a different RunPod failure that also returned no error in our post on RunPod InfiniteTalk ignoring the size param when the reference image disagrees. In both cases, a successful status from RunPod doesn't prove the output is correct.

Which RunPod serverless errors should be transient and which permanent?

Classify by what a retry can change. Network errors, 5xx, 408, 429, CANCELLED, TIMED_OUT and worker-specific CUDA faults are transient: retry with backoff. A paused endpoint is neither: hold the queue and alert. Other 4xx responses, FAILED jobs and COMPLETED jobs whose output carries an error are permanent, because the same input will fail the same way.

SignalClassHandling
Network error, HTTP 5xx / 408 / 429, non-JSON bodyTransientRequeue with 30 s × attempt delay, max 3 attempts
Job CANCELLED / TIMED_OUT, our own queue/exec deadlineTransientCancel the RunPod job, requeue
HTTP 409 ENDPOINT_PAUSEDEndpoint stateStop claiming, alert, don't spend an attempt
FAILED with "no kernel image is available"Transient (allowlisted)Retry, which lands on another worker
Other HTTP 4xxPermanentMark failed with the trimmed, redacted error
Other FAILED, or COMPLETED with output.error / missing outputPermanentMark failed

One detail worth copying: every error string goes through a redactor before it reaches the database or logs. It strips sig=/token= query parameters and the literal API key. Our job input carries a signed video URL, and no error path should be able to write it to disk.

The RunPod serverless checklist at a glance

Branch on "code":"ENDPOINT_PAUSED" before your generic 4xx handler, and remember that RunPod pauses idle endpoints on its own after 7 days. Give IN_QUEUE its own long deadline, because cold starts on scale-to-zero GPUs take minutes. Persist job IDs so restarts resume instead of resubmitting, and cancel on timeout.

Treat "no kernel image" as a worker fault you retry, then fix the cause by matching the image's CUDA architectures to the endpoint's GPU list. None of these three problems shows up in the job payload you're debugging. They come from the endpoint and the GPU pool, so if your error handling only looks at the job, it will report all three as bad jobs.