• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / storage / 46672764172
89%

Build:
DEFAULT BRANCH: master
Ran 01 Dec 2026 02:56PM UTC
Jobs 2
Files 407
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

01 Dec 2026 02:54PM UTC coverage: 88.824% (+0.1%) from 88.708%
46672764172

push

github

web-flow
feat(queue): replay dead letters back onto their queue from the admin API (#1776)

## What

An admin endpoint to replay a queue's dead letters back onto it, paced
so its workers are not swamped. The move itself is part of the generic
queue adapter contract, so it works the same on pg-boss and SQS.

### Endpoints

- `GET /queue/dead-letters`: every queue with a dead-letter queue of its
own, with how many dead letters it holds (fullest first) and how busy
the queue it would be replayed onto is right now (`outstanding`, what
`maxBacklog` is measured against). Counts are the engine's sampled
gauges, approximate on SQS. On pg-boss it also shows `conflicts`: dead
letters a replay could not move because the queue already held a job
with the same key. pg-boss fails those in place in the dead-letter
queue, outside `deadLetters`, and no replay takes them again.
- `POST /queue/dead-letters/replay`:

| field | default | |
|---|---|---|
| `queue` | required | the queue to replay onto; its own dead-letter
queue is the source |
| `limit` | required | the most dead letters this replay moves (1 to
100,000) |
| `batchSize` | 100 | the most one round moves (up to 1,000) |
| `delaySeconds` | 5 | the pause between rounds |
| `maxBacklog` | 1,000 | a round moves nothing while the queue has this
many messages waiting, running or due for a retry |
| `maxMinutes` | 60 | the replay stops at this limit, whatever is left |

### How it avoids storming workers

The replay runs in the background as a chain of `ReplayDeadLetters`
jobs, one round per job (the same shape as the v10 to SQS move). Each
round moves at most `min(batchSize, what is left of limit, room under
maxBacklog)`, so the queue never gets more than `maxBacklog` piled onto
it, whatever the pace or however many replays run at once. A round with
no room moves nothing and the next one waits at least 15s. The chain
ends at the limit, on an empty dead-letter queue, or at `maxMinutes`.

Replayed messages arrive as fresh mes... (continued)

10424 of 12325 branches covered (84.58%)

Branch coverage included in aggregate %.

283 of 285 new or added lines in 19 files covered. (99.3%)

17926 of 19592 relevant lines covered (91.5%)

1278.46 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
95.65
src/internal/queue/adapters/sqs/redrive.ts
1
95.79
src/storage/events/dead-letters/replay-dead-letters.ts
Jobs
ID Job ID Ran Files Coverage
1 rest-pg18 - 46672764172.1 01 Dec 2026 03:02PM UTC 380
68.84
GitHub Action Run
2 unit - 46672764172.2 01 Dec 2026 02:56PM UTC 399
72.57
GitHub Action Run
Source Files on build 46672764172
  • Tree
  • List 407
  • Changed 22
  • Source Changed 18
  • Coverage Changed 22
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #46672764172
  • 3e08b528 on github
  • Prev Build on master (#46642281379)
  • Next Build on master (#46675311574)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc