Skip to content

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.

  1. Fix the cause. A job requeued into the same failure fails again and spends another set of attempts. Read last_error and the attempts of a few failed jobs: a 401 or 403 means the consumer refuses the credentials the connection’s service account sends; connection errors or 5xx mean the consumer was down or broken; a 422 with a reject outcome means the consumer judged the message unprocessable.
  2. Check that the consumer is idempotent. Delivery is at least once; requeue makes repeats more likely, redrive certain.
  3. Mind ordered groups. In a BLOCK_ON_ERROR group, 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.
  4. Mind the retention. Jobs are dropped with their monthly partition after the retention (90 days by default). Deal with failures well before that.
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.

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 since and until the last 24 hours are used; a window wider than FC_DISPATCH_JOB_MAX_WINDOW_DAYS (31) is refused with WINDOW_TOO_LARGE. For an older incident, work through it window by window.
  • confirmCount guards against surprises. If more jobs would be reset than you confirmed (new failures arrived), nothing is reset and the answer is 409 FILTER_MATCH_CHANGED. Preview again.
  • At most 10,000 jobs per request (limit). The answer says truncated and how many remain; repeat until none do.
  • Filters include applications, clientIds, codes, eventTypes, subscriptionId, connectionId or connectionCode, dispatchPoolId, messageGroup and source. 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).

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.

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

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.