Skip to content
Get started
Get started
DLQ Configuration: Size, Age and Retry Policy
guide · dead letter queue

How long dead jobs stick around.

A DLQ that grows forever is just a leak with extra steps. These options bound it by age and by count, and decide whether entries get another chance before they expire.

queue.setDlqConfig({
autoRetry: true,
autoRetryInterval: 3600000,
maxAutoRetries: 3,
maxAge: 604800000, // purge entries after 7 days (null = never)
maxEntries: 10000,
});

The DLQ policy is server-side state per queue: set it once from any client and it governs jobs failed by workers in every language. A dedicated helper ships in the Bun package, the TypeScript SDK and the Python SDK; the other tabs issue the same SetDlqConfig command through each SDK’s public TCP connection.

OptionDefaultDescription
autoRetryfalseEnable automatic retry
autoRetryInterval3600000Base delay between auto-retries (1 hour)
maxAutoRetries3Maximum auto-retry attempts
maxAge604800000Auto-purge age (7 days, null = never)
maxEntries10000Maximum DLQ entries per queue
DLQ Operations from the Queue ObjectThe same operations from an existing Queue instance
Dead Letter QueueWhat the DLQ is, and a first look at what failed
DLQ OperationsFilter, retry selectively, check health, purge
Automatic DLQ Retry with BackoffLet bunqueue re-queue dead entries on a backoff
DLQ ReferenceFailure reasons, entry shape, every DLQ method