Jobs
A job is one HTTP request that Delay sends for you, right away or after a delay of up to 365 days. Every job belongs to a queue, and the queue decides the timeout, retries, concurrency and assertions.
A job from start to finish
Schedule a request for 15 minutes from now:
curl -X POST https://app.delay.run/api/v1/jobs \ -H "Authorization: Bearer $DELAY_TOKEN" \ -H "Content-Type: application/json" \ -d '{"queue": "reminders", "url": "https://api.yourapp.com/trial-reminder", "payload": {"user_id": 42}, "delay": 900}'Delay replies with the job. These are its main fields:
{ "object": "job", "id": "019a0c4e-7b21-7d3a-9f4e-2c1b8a6d5e40", "status": "scheduled", "summary": "Scheduled for 2026-10-18T14:15:00+00:00 (15 minutes from now).", "queue": { "id": "019a0c4e-1f3b-7c55-8a1e-6d2f9b0c4a71", "name": "reminders" }, "scheduled_for": "2026-10-18T14:15:00+00:00", "attempt_count": 1, "max_attempts": 4, "dashboard_url": "https://app.delay.run/jobs/019a0c4e-7b21-7d3a-9f4e-2c1b8a6d5e40"}Every field: Jobs API. At 14:15 UTC the job starts. From there it goes one of three ways, shown here with the stored statuses:
pending --> processing --+--> completed 2xx and every assertion passed | +--> failed --+--> retry scheduled a new job (attempt 2, 3, ...) starts at pending | +--> dead-lettered no retries left, listed under Dead lettersStatuses
The dashboard, the API and AI agents describe a job with five words. A job’s status is that of its latest attempt:
| Status | When |
|---|---|
| Scheduled | The first attempt is waiting for its time, for a free slot, or for a paused queue to resume. |
| Running | An attempt is being sent right now. |
| Retrying | An attempt failed and a retry is waiting. |
| Succeeded | An attempt got a 2xx response that passed every assertion. |
| Failed | The last attempt failed and nothing more will be tried: the job ran out of retries (or retries are off) and is dead-lettered, or the monthly limit blocked it. |
A failed or retrying job carries an explanation of what went wrong and what to do.
Underneath, each attempt stores a status and a final_status. You see them as the status field of a callback, and in the tabs of the Jobs list (Pending, Processing, Retrying, Completed, Failed):
status | final_status | Shown as | What it means |
|---|---|---|---|
pending | none | Scheduled, or Retrying for a retry | Waiting for its scheduled time, for a free slot, or for a paused queue to resume. |
processing | none | Running | A worker has picked it up and the request is in flight. |
completed | success | Succeeded | The response was 2xx and every assertion passed. |
failed | retrying | Failed (the first attempt shows Retrying while its retry waits) | This attempt failed and a retry was scheduled as a new job. |
failed | dead_lettered | Failed | This attempt failed and no retries are left (or retries are off). The job is under Dead letters. |
failed | failed_no_retries | Failed | Your team had reached its monthly request limit, so nothing was sent. Not retried and not dead-lettered. |
A failed attempt stays failed even if a later retry succeeds. The API groups the attempts into one job whose status follows the last one (one job, several attempts).
Delay and run time
delayis in seconds, from 0 to 31,536,000 (365 days). It defaults to 0. The originalPOST /api/jobsallows at most 86,400 (24 hours).run_atsets an absolute time instead, as ISO 8601 with an offset, such as2026-10-18T16:15:00+02:00. It’s only in the v1 API. Send one of the two, not both.- The job’s scheduled time (
scheduled_forin v1,scheduled_atin the originalPOST /api/jobs) is the time of your API call plusdelay, orrun_at, in UTC. It’s the earliest the job can start. - Nothing can be scheduled more than 365 days ahead. For repeating requests, use a cron.
How close to its scheduled time a job starts depends on the delay:
delay | When the job starts |
|---|---|
| 60 seconds or less | Within seconds of the scheduled time, depending on how busy the workers are. |
| More than 60 seconds | Within about a minute after the scheduled time, because Delay looks for due jobs once a minute. |
Retries
When an attempt fails, Delay retries it if the queue has retries on and delays left. The defaults give 4 attempts over about 3.5 hours (retry settings).
What counts as a failure. Anything other than a 2xx response that passes every assertion:
- 3xx responses (Delay doesn’t follow redirects)
- 4xx responses, including 404 and 429
- 5xx responses
- timeouts, and connection, DNS and TLS errors
- URLs that resolve to a private or reserved address
- failed assertions
All of these are retried the same way. The one failure that is never retried is the monthly request limit. Each failure gets a reason label, listed in failure reasons.
Each retry is a new job. When an attempt fails and a retry is due, Delay creates a new job with:
- a new
job_id - an
attempt_numberone higher than the failed attempt - the same queue, URL, method, headers, payload and callback URL
- a start time of now plus the next retry delay
What that means in practice:
- The id the API returned belongs to attempt 1. If attempt 3 succeeds, the success is recorded on a different id. The v1 API hides this:
GET /api/v1/jobs/{id}returns the whole job, with every attempt, under the first id. - A callback carries the id and
attempt_numberof the attempt that finished, and the first attempt’s id asoriginal_job_id(matching callbacks). - In Jobs, each attempt is its own row. A retry row shows ↻ with the first attempt’s id, and its page shows Attempt #n. The Retrying tab lists first attempts whose retry is still waiting.
- Each attempt counts as one request toward your monthly quota (usage).
Cron jobs never retry.
Callbacks
Set callback_url and Delay sends one POST when the job ends: when an attempt succeeds, or when the last attempt fails and the job is dead-lettered. Failed attempts that will be retried don’t send one. Payloads and delivery rules: Completion callbacks.
Dead letter queue
When a job’s last attempt fails, that attempt is listed under Dead letters, where you can replay or purge it. It’s kept for the queue’s Dead letter retention (14 days by default). See Replay failed jobs.
Next steps
- Send a one-off or delayed request: create, fire, cancel and bulk-edit jobs in the dashboard.
- Queues: every queue setting with its default.
- Jobs API: schedule, list, read and cancel jobs.
- Runs and failure reasons: what Delay records for each attempt.