Skip to content

Runs and failure reasons

Every time Delay sends a request, it records a run: what was sent, what came back, how long it took and, if it failed, why and what to do about it. Each job attempt has exactly one run, and every retry is a new job with its own run. (Older parts of the dashboard and the callbacks call a cron’s runs “executions”.)

Where to find runs

  • Crons: open the cron from Cron jobs. Recent runs shows the last 10 runs. View all opens the Run history, 20 runs per page. Click a row to see its details.
  • Jobs: the Jobs list shows each job’s status, HTTP code, failure reason and duration. Open a job to see its request and response.
  • API and AI agents: GET /api/v1/crons/{id}/runs and GET /api/v1/jobs/{id} return the same runs, with the same explanations.

For a step-by-step walkthrough, see Debug a failed run.

What a run records

FieldWhat it holds
Started atWhen Delay began the run
Completed at (crons), Executed at (jobs)When the response arrived or the run failed
DurationMilliseconds from the start of the run to the response, including the DNS lookup and connecting
Response statusThe HTTP status code, if a response arrived
Response headersThe headers your endpoint returned
Response bodyWhat your endpoint returned, up to 65,535 bytes
Request headersThe headers you configured
Request bodyFor crons, the payload string as you wrote it. For jobs, the JSON payload.
Error messageWhat went wrong, for example HTTP 503 error or Assertion failed: ...
Failure reasonOne of the values in Failure reasons
ExplanationFor a failed run, what happened and what to do. See Failure explanations.

A few details worth knowing:

  • Long bodies are cut. Bodies over 65,535 bytes are stored cut short with ... at the end. The Run history page and the API show the first 2,000 characters of each body. Assertions always check the full body, not the stored copy.
  • Delay’s own headers aren’t listed. Request headers show only the headers you set. Content-Type, User-Agent and the signature headers are sent but not recorded. The full list is in What your endpoint receives.
  • A cron’s request body is shown before wrapping. If your cron payload is plain text, it is sent as {"body": "..."} but recorded as the text you wrote (see Cron schedules).
  • Runs are deleted with their cron, job or queue. Deleting a cron deletes its execution history. Purging a dead-lettered job, or its automatic cleanup after the queue’s Dead letter retention, deletes its run.

Run status

The dashboard, the API and AI agents all describe a run, or a whole job, with the same five words:

StatusMeans
Scheduled (scheduled)Waiting for its time to run.
Running (running)The request is being sent right now.
Retrying (retrying)An attempt failed and another one is scheduled. Jobs only: crons don’t retry.
Succeeded (succeeded)Your endpoint answered with a 2xx status and passed every success assertion.
Failed (failed)It failed and won’t be tried again.

In a cron’s run lists, the HTTP code appears next to the status, for example Failed 500. A run counts as successful only when a 2xx response arrived and no failure reason was set, so a cron run that gets a 500 back is Failed, with the failure reason http_server_error.

Behind these words, Delay stores the older statuses pending, processing, completed and failed. You still see them in callbacks and in the tabs of the Jobs list. How they map, and how a job’s status follows its latest attempt: Jobs.

Failure explanations

Every failed run comes with an explanation: one sentence on what happened, and one on what to do. The dashboard shows it in a red box, the second sentence after What to do:, on a cron’s page when its last run failed, on a run you expand in Run history, and on a job’s page. The API returns it as explanation, with summary and fix, and AI agents get the same words, so you and your agent read the same thing.

"explanation": {
"summary": "Your endpoint answered with a redirect (301) to https://www.yourapp.com/health. Delay doesn't follow redirects, so the request stopped there.",
"fix": "Change the URL to https://www.yourapp.com/health. Common causes are http:// instead of https://, or a missing or extra trailing slash."
}
What happenedWhat Delay tells you to do
A redirect (3xx)Change the URL to the address in the redirect. Delay doesn’t follow redirects.
400Check that the body and headers are what the endpoint expects.
401Add or update the credentials in the request’s headers.
403Check the credentials’ permissions, and let Delay’s requests through any firewall or bot protection (for example Cloudflare).
404Check the path for typos, and that the route is deployed.
405Change the method to the one the endpoint expects.
408Usually temporary. If it keeps happening, check the server’s timeouts and load.
409Check the response body for the reason. If the endpoint guards against double runs, this may be expected.
413Send a smaller payload, or raise the body size limit on your server.
415Set Content-Type to the format the endpoint expects.
422Compare the payload with what the endpoint expects.
429Run less often, or raise the rate limit for Delay’s requests on your side.
500 and other 5xxLook in your server’s error logs at the time of the run.
502Check that the app is running and wasn’t restarting or deploying.
503Check that the app is up. After a deploy or maintenance, the next run should work.
504Make the endpoint answer faster: do slow work in the background and return 202 right away.
Other 4xxRead the response body, which usually explains why.
TimeoutMake the endpoint answer faster, or raise the timeout. The summary says how long Delay waited.
Connection refused or droppedCheck that the server is running, reachable from the internet on this port, and not behind a firewall that blocks Delay.
DNS lookup failedCheck the hostname for typos and that its DNS records exist.
TLS certificate problemRenew or fix the certificate, and check that it covers this exact hostname.
Invalid URLCheck that the URL starts with https:// or http:// and has a valid hostname.
A success assertion failedFix what the endpoint returns, or change the assertion if it’s out of date. The summary names the failed check.
Monthly limit reachedUpgrade your plan, or wait until the limit resets on the 1st of next month (UTC).
Anything elseThe summary quotes the error. If it keeps happening, contact support with the run ID.

A test request gets the same explanations, plus one for private addresses: “Delay won’t call this URL because it points to a private or local address.” In a scheduled run, that case fails with the reason unknown and the error “URL resolves to a blocked IP address” (see below).

Failure reasons

Every failed run gets one of these reasons. The dashboard shows the text in the Label column, for example in the Jobs list and on the Alerts page.

ReasonLabelWhat happenedWhat to do
timeoutTimeoutNo complete response within the request timeout, or the connection couldn’t be opened within 10 secondsMake the endpoint answer faster (reply first, then do the work), or raise the timeout (up to 300 seconds)
connection_errorConnection errorThe connection was refused, reset or unreachableCheck the server is up, listening on the right port, and that its firewall accepts outside traffic
dns_errorDNS errorThe hostname couldn’t be resolvedCheck the domain spelling and its DNS records
ssl_errorSSL/TLS errorThe TLS handshake failedCheck the certificate is valid, not expired and has its full chain. The server must support TLS 1.2 or newer.
http_client_errorClient error (4xx)Your endpoint returned a 4xx statusCheck the URL, method, auth headers and payload. The response body usually says what’s wrong.
http_server_errorServer error (5xx)Your endpoint returned 500 or higherCheck your server logs for the error at that time
invalid_urlInvalid URLThe URL has no host, or uses a scheme other than http or httpsFix the URL
assertion_failedAssertion failedA 2xx response arrived but a success assertion didn’t passThe error message names the assertion. Compare it with the response body.
limit_exceededMonthly limit reachedYour team reached its monthly request limit, so no request was sentUpgrade, or wait for the next month. See How usage is counted.
unknownUnknown errorAnything else (see below)Read the error message

The most common causes of unknown:

  • A redirect. Delay doesn’t follow redirects, so a 301, 302, 307 or 308 is a failure. Use the final URL (check https, www and trailing slashes).
  • “URL resolves to a blocked IP address”. The hostname points to a private or reserved address (such as 10.x, 192.168.x or 127.0.0.1). Delay only calls public addresses.
  • “Cannot resolve host”. The hostname has no public IPv4 address. Check its DNS records. Hosts that only have an IPv6 address can’t be called.

Job attempts that fail for any of these reasons are retried according to their queue’s settings, except limit_exceeded (see Queues). Crons never retry.

How usage is counted

Each run counts as one request toward your team’s monthly quota:

  • every cron execution, scheduled or started with Run now;
  • every job attempt, so a job that succeeds on its third try counts three times;
  • failed runs, and runs blocked by the limit.

Callbacks and alert notifications don’t count. The count is per team and resets at the start of each calendar month, in UTC.

PlanRequests per monthWarning at
Free1,000800 (80%)
Starter20,00018,000 (90%)
Pro75,00067,500 (90%)
Business500,000450,000 (90%)
Enterprise5,000,0004,500,000 (90%)

You can see this month’s count on the Usage tab.

At the warning level, Delay adds one “Limit warning” alert per month to the Alerts page. It is shown in the app only, not sent by email, Slack or Discord.

At the limit, every new run fails at once with limit_exceeded, and no request is sent:

  • Jobs are not retried and don’t go to the dead letter queue. No callback is sent.
  • Crons stay on their schedule and record a failed run each time they come due.
  • The API still accepts new jobs and crons with a 201. The limit is checked when a run starts, not when you create it.

The count is refreshed about once a minute, so a busy team can go slightly over its limit before runs are blocked.

Next steps