Find, requeue, redrive, cancel and edit dispatch jobs
This is the operator’s page for deliveries that did not go as planned: a consumer was down, a payload was malformed, a group is held behind a failure. You find the jobs, decide what should happen to them, and the platform re-delivers or settles them. The lifecycle and the rules behind each action are in Dispatch jobs; this guide is the console workflow.
Open Messaging → Dispatch Jobs (/ui/dispatch-jobs; needs platform:messaging:dispatch-job:view).
Clients see only their own jobs.
Permissions
Section titled “Permissions”Reading and each write are separate permissions, so you can grant a support role requeue without cancel. Controls you cannot use are hidden, and the server checks again.
| Action | Permission |
|---|---|
| View the list and drawer | platform:messaging:dispatch-job:view |
| Requeue (one, selected, or by filter) | platform:messaging:dispatch-job:requeue |
| Redrive completed jobs | platform:messaging:dispatch-job:redrive-completed, on top of requeue; no built-in role holds it |
| Cancel job | platform:messaging:dispatch-job:cancel |
| Mark completed | platform:messaging:dispatch-job:complete |
| Cancel, mark completed | POST /api/dispatch-jobs/{id}/cancel, POST /api/dispatch-jobs/{id}/complete |
| Edit payload | platform:messaging:dispatch-job:edit-payload |
| Sign (preview the delivery) | platform:messaging:dispatch-job:view-raw |
Tokens carry permissions from when they were minted, so sign in again after a role changes.
1. Find the jobs
Section titled “1. Find the jobs”Choose the window first
Section titled “Choose the window first”Every list is held to a created_at window. With nothing chosen you see the last 24 hours, and the
page says so (“Showing the last 24 hours”, with a “default window” tag when the server chose it). Use the
window buttons (1h, 3d, 7d, 31d), or Created from and Created to dates. The dates are UTC
days. The maximum is 31 days (FC_DISPATCH_JOB_MAX_WINDOW_DAYS); a wider range is refused with
WINDOW_TOO_LARGE. A job older than the window is not in the list, even if you search for it by name:
widen the window.
Filter
Section titled “Filter”Filters apply live as you change them and combine (every one must hold):
- Clients, Applications, Subdomains, Aggregates and Codes: the dispatch job’s code is its event type for a job an event raised, so these narrow by event type’s segments.
- Statuses:
PENDING,QUEUED,PROCESSING,COMPLETED,FAILED,ERROR,CANCELLED,EXPIRED. - Source, Message group, Subscription and Connection (exact, or ending in
*for a prefix). - Two quick views: Failed (
FAILEDandERROR) and Stuck (PENDINGandQUEUEDjobs created more than five minutes ago).
The address bar holds the filter, so a filtered view can be bookmarked or shared. Paging is by Older and Newest, with a page size selector.
2. Look before you act
Section titled “2. Look before you act”Open a row to see the drawer: status, attempts with each response and error, the event, the subscription and connection (linked when you may read them), and an Audit section loaded on demand. Sign shows exactly what a delivery would send now, with a real signature, which is how you check a consumer’s signature verification against a real job.
3. Requeue
Section titled “3. Requeue”Requeue puts a job back to PENDING, due now, with a full set of attempts. It applies to PENDING,
FAILED, ERROR, CANCELLED and EXPIRED jobs. A requeue also clears the job’s expiry, so an old job
is delivered even though it is past its maxAgeSeconds.
| Scope | How |
|---|---|
| One job | Requeue in the row or drawer. |
| Several | Tick rows, then Requeue selected (n). |
| Everything that matches | Requeue all matching jobs… (or Requeue everything in error). A confirmation shows the count before it runs. |
Requeue all matching acts on the filter in the address bar, not on the rows you can see. The review
step previews it: how many match, by status, how many are eligible, how many are out of your scope, and
the cap of 10,000 jobs. Press confirm to run it with the eligible count. If the match changed in the
meantime the step shows the new counts and asks again (FILTER_MATCH_CHANGED).
The outcome tells you what was left alone, for example “2 jobs in flight (QUEUED or PROCESSING) left
alone”. QUEUED and PROCESSING jobs are being delivered and are never reset by a bulk or filter
requeue. For a single job that really is stuck, the drawer offers a separately confirmed Requeue of a
job in flight; a delivery still under way may then land as well as the new one, so use it only when you
believe the first attempt is lost.
4. Redrive completed jobs
Section titled “4. Redrive completed jobs”A COMPLETED job was accepted by the consumer. Sending it again repeats work, so it is a separate,
deliberately awkward action that needs the redrive permission.
- When ticked rows include
COMPLETEDjobs, or you choose Redrive on a completed job, a dialog offers Requeue N other jobs, or Also redrive N COMPLETED jobs…. - The second step asks you to type the word
REDRIVEand the number of jobs the run will reset. A wrong entry runs nothing and says why on the field. - Requeue all matching does the same from its review step.
- Without the permission, a requeue goes ahead and tells you the completed jobs were left alone.
A redrive is recorded as one in the audit log. Make sure the consumer is idempotent before you do it; see Receive webhooks.
5. Cancel and mark completed
Section titled “5. Cancel and mark completed”- Cancel job (
PENDING,QUEUED,PROCESSING,FAILED): the job becomesCANCELLED. A delivery already under way cannot be recalled, but its outcome is then refused and the job stays cancelled. Cancelling a job that is in flight asks for an extra confirmation. A failed job in aBLOCK_ON_ERRORgroup holds the jobs behind it until it is resolved: requeue, cancel or mark it completed. - Mark completed (
FAILED): the job becomesCOMPLETED, for work you handled out of band. This does not contact the consumer.
6. Correct a payload
Section titled “6. Correct a payload”For a job that failed because its data was wrong:
- Open the job in the drawer. It must be
PENDINGorFAILED. - Choose Edit payload… (the pencil). The editor validates JSON when the content type is JSON.
- Save. The payload (UTF-8, at most 256 KiB) and optionally the content type change. Status and attempts do not.
- Requeue the job.
A QUEUED or PROCESSING job is being delivered and a COMPLETED, CANCELLED or EXPIRED one is
history: both answer 409 NOT_EDITABLE. The audit entry records sizes and SHA-256 digests of the old and
new payload, not the payload itself.
7. Name direct jobs: the job descriptor catalogue
Section titled “7. Name direct jobs: the job descriptor catalogue”The console shows each job under a name. A job raised by a subscription shows the subscription’s name. Any other job (a direct job, one an application raised without a subscription) shows the name catalogued for its code, then the descriptor stored on the job row, then its code. The names are looked up when a page is shown, one batched read per page; they are not copied onto every job row, so changing a name changes how every job of that code appears.
Open Messaging → Job Descriptors (/ui/dispatch-job-descriptors). Each entry is:
| Field | Notes |
|---|---|
| Code | The four-segment application:subdomain:aggregate:action code the jobs carry. One entry per code, at most 200 characters. It cannot change after creation. |
| Name | What a job of this code is, in words. Required, at most 255 characters. |
| Description | Optional. |
Creating an entry for a code that already has one is refused (CODE_EXISTS). Creating, editing and
deleting entries are audited. An application-scoped caller sees and writes only its own application’s
entries; writing is a platform-level act, so it also needs anchor reach.
| Action | Permission |
|---|---|
| View | platform:messaging:dispatch-job-descriptor:view (the Messaging Administrator and Platform Viewer roles) |
| Create, update, delete | platform:messaging:dispatch-job-descriptor:create, :update, :delete (the Messaging Administrator role) |
The API is GET and POST /api/dispatch-job-descriptors (application filters the list) and GET,
PUT and DELETE /api/dispatch-job-descriptors/{id}.
Via the API
Section titled “Via the API”| Console action | Endpoint |
|---|---|
| List | GET /api/dispatch-jobs (since, until, filters; the answer’s X-Window-* headers say which window applied) |
| Requeue by ids | POST /api/dispatch-jobs/requeue |
| Requeue by filter | the preview and run endpoints under the same path, with confirmCount |
| Redrive | the same, with redriveCompleted: true and confirmRedriveCompleted: "REDRIVE" |
| Cancel, mark completed | POST /api/dispatch-jobs/{id}/cancel, POST /api/dispatch-jobs/{id}/complete |
| Edit payload | PUT /api/dispatch-jobs/{id}/payload with {payload, payloadContentType?} |
See the dispatch-jobs API reference for exact paths and bodies.