Jobs and statuses
Job numbers, the life of a job, retries, archiving and the jobs API.
Every send creates a job. Comms works through jobs in the background: it picks a provider by priority, sends, retries on failure and records what the provider reports afterwards.
Job numbers
Each job gets a readable number, for example KLVEA2612010001: the organisation's tenant code (KLV), the channel (E email, S SMS, W WhatsApp), the provider type's letter, the date (YYMMDD, UTC) and a running number for the day.
Statuses
| Status | Meaning |
|---|---|
pending | Waiting to be sent: new, scheduled for later, or waiting before a retry. |
active | Being sent now. |
complete | Handed to the provider. |
failed | Could not be sent: every attempt failed, or the failure cannot be fixed by retrying (a rejected address, a suppressed recipient). |
delivered | The provider reports it reached the recipient. |
bounced | The recipient's server rejected it. |
complained | The recipient marked it as spam. |
undelivered | The provider could not deliver it (e.g. an SMS carrier failure). |
The last four come from delivery tracking and only move forward.
Retries and throttling
A failed attempt is retried automatically with growing waits, trying the next provider by priority. A provider at its rate limit is skipped without using up an attempt, and email from the same sender is spaced a few seconds apart, so a burst does not look like spam. When every attempt is used the job is failed; restart it with PUT /api/jobs/{id}/restart or from the admin panel.
Jobs API
| Call | Does |
|---|---|
GET /api/jobs?status=&kind= | The organisation's jobs, filtered by status and channel. |
GET /api/jobs/{id} | One job, with its variables and its delivery events. |
PUT /api/jobs/{id}/restart | Send a failed job again. |
Archiving
Old jobs move to the archive (after a year by default). They stay readable under Jobs › Archived in the admin panel and keep their final status.