Requeue and redrive
Symptom. A consumer was down or broken and its dispatch jobs are FAILED (out of attempts, or
refused with 401, 403 or a 422 reject). Or jobs EXPIRED while a pool was suspended. Or a
consumer lost data and needs jobs it already accepted (COMPLETED) sent again.
Requeueing puts jobs back to PENDING, due now, with a fresh set of attempts. Redriving does the same
for COMPLETED jobs, which is a separate and deliberate action. The console’s
dispatch-job pages do both; this runbook covers the decisions
and the API.
Before you requeue
Section titled “Before you requeue”- Fix the cause. A job requeued into the same failure fails again and spends another set of
attempts. Read
last_errorand the attempts of a few failed jobs: a401or403means the consumer refuses the credentials the connection’s service account sends; connection errors or5xxmean the consumer was down or broken; a422with a reject outcome means the consumer judged the message unprocessable. - Check that the consumer is idempotent. Delivery is at least once; requeue makes repeats more likely, redrive certain.
- Mind ordered groups. In a
BLOCK_ON_ERRORgroup, the failed head holds every later job of the group. Requeueing the head (or completing or cancelling it) releases the group, and the later jobs follow in order. Requeueing only later jobs does nothing while the head stays failed. - Mind the retention. Jobs are dropped with their monthly partition after the retention (90 days by default). Deal with failures well before that.
Requeue by ids
Section titled “Requeue by ids”POST /api/dispatch-jobs/requeue{ "ids": ["0HZXEQ5Y8JY5K", "0HZXEQ5Y8JY5M"] }Needs platform:messaging:dispatch-job:requeue. PENDING, FAILED, CANCELLED and EXPIRED jobs
are reset; a requeue also clears a job’s expiry, because an operator’s requeue means “deliver now”.
QUEUED and PROCESSING jobs are never reset by this call; they are reported in skippedInFlight,
not treated as errors. The answer counts requeued, skipped, skippedInFlight,
skippedCompleted and redriven.
Requeue by filter
Section titled “Requeue by filter”For many jobs, preview first, then run with the count you were shown:
POST /api/dispatch-jobs/requeue-by-filter/preview{ "since": "2026-11-09T00:00:00Z", "until": "2026-11-10T00:00:00Z", "subscriptionId": "sub_0HZX...", "statuses": "FAILED" }The preview answers count, eligibleCount, byStatus, inFlightCount, completedCount and the
window it used. Then:
POST /api/dispatch-jobs/requeue-by-filter{ "since": "2026-11-09T00:00:00Z", "until": "2026-11-10T00:00:00Z", "subscriptionId": "sub_0HZX...", "statuses": "FAILED", "confirmCount": 1834 }- The window is required in effect. Without
sinceanduntilthe last 24 hours are used; a window wider thanFC_DISPATCH_JOB_MAX_WINDOW_DAYS(31) is refused withWINDOW_TOO_LARGE. For an older incident, work through it window by window. confirmCountguards against surprises. If more jobs would be reset than you confirmed (new failures arrived), nothing is reset and the answer is409 FILTER_MATCH_CHANGED. Preview again.- At most 10,000 jobs per request (
limit). The answer saystruncatedand how manyremain; repeat until none do. - Filters include
applications,clientIds,codes,eventTypes,subscriptionId,connectionIdorconnectionCode,dispatchPoolId,messageGroupandsource. Narrow the filter to the consumer you fixed; a broad requeue also re-sends jobs that failed for reasons you have not fixed.
Requeue by filter never touches QUEUED or PROCESSING jobs. For a job judged stuck in flight, use
Requeue in flight on selected jobs in the console (see
stuck dispatch jobs).
Redrive completed jobs
Section titled “Redrive completed jobs”Sending jobs the consumer already accepted repeats work it has done, so it is a separate action with
its own permission (platform:messaging:dispatch-job:redrive-completed, which no built-in role holds:
grant it to a named person for the occasion) and a double confirmation:
POST /api/dispatch-jobs/requeue{ "ids": ["0HZXEQ5Y8JY5K"], "redriveCompleted": true, "confirmRedriveCompleted": "REDRIVE" }The same two fields work on requeue by filter, where confirmCount is then the preview’s
redriveEligibleCount. Without both fields, COMPLETED jobs are skipped and reported in
skippedCompleted. Every requeue and redrive is recorded in the audit log.
Other ways out
Section titled “Other ways out”| Situation | Action |
|---|---|
| The job should never be delivered | Cancel it (POST /api/dispatch-jobs/{id}/cancel) |
| The work was done another way | Mark it completed (POST /api/dispatch-jobs/{id}/complete), which releases a held group |
| The payload was wrong | Correct it (PUT /api/dispatch-jobs/{id}/payload, PENDING or FAILED jobs, up to 256 KiB), then requeue |
| The consumer cannot verify signatures | POST /api/dispatch-jobs/{id}/sign shows exactly what a delivery would send, signature included |
Outbox groups held by a refusal
Section titled “Outbox groups held by a refusal”Events and jobs that never reached the platform are a different problem: the application’s outbox
relay holds them. When the platform’s own outbox processor (FC_OUTBOX_ENABLED) relays an outbox,
a row the platform refuses for good (400 or 403) blocks its message group until an operator acts,
and retryable failures retry for ever with backoff. With FC_OUTBOX_ADMIN_PORT set, its admin API on
127.0.0.1 shows and releases them:
| Call | Effect |
|---|---|
GET /outbox/groups/blocked |
Groups blocked by a refused row |
GET /outbox/holds |
Groups waiting out a backoff or a 429 |
POST /outbox/groups/{group}/unblock |
Retry the refused row (after fixing the cause) |
POST /outbox/groups/{group}/skip |
Give up on the refused row and let the group continue |
POST /outbox/groups/{group}/pause, /resume |
Hold or release a group |
Applications that run their own relay (the SDKs’ outbox processors) have their own equivalents; see the transactional outbox.
Read next
Section titled “Read next”- Dispatch jobs: statuses, attempts and operator actions.
- Find, requeue, redrive, cancel and edit dispatch jobs.
- Decision: time-windowed dispatch reads and explicit redrive.