akili dlq
Manage the dead letter queue (DLQ). When data product executions fail, the failed records are sent to the DLQ for inspection and replay. Use these commands to diagnose failures, replay individual or batches of entries, and purge old entries.
Commands
Section titled “Commands”akili dlq list
Section titled “akili dlq list”List DLQ entries, optionally filtered by product.
Flags:
| Flag | Short | Default | Description |
|---|---|---|---|
--product | Filter by product name or ID |
Examples:
# List all DLQ entries for the tenantakili dlq list
# Filter by productakili dlq list --product daily-orders
# As JSONakili dlq list --jsonakili dlq get <id>
Section titled “akili dlq get <id>”Inspect a single DLQ entry with full details including the error message, payload, and replay count.
Arguments:
| Argument | Type | Required | Description |
|---|---|---|---|
id | string | yes | DLQ entry ID |
Examples:
# Inspect a DLQ entryakili dlq get dlq-abc-123
# As JSON to see full payloadakili dlq get dlq-abc-123 --jsonakili dlq replay <id>
Section titled “akili dlq replay <id>”Replay a single DLQ entry, re-executing the failed record.
Arguments:
| Argument | Type | Required | Description |
|---|---|---|---|
id | string | yes | DLQ entry ID |
Flags:
| Flag | Short | Default | Description |
|---|---|---|---|
--use-current-version | false | Replay using the current product version instead of the original |
Examples:
# Replay a DLQ entry with original versionakili dlq replay dlq-abc-123
# Replay using the latest product versionakili dlq replay dlq-abc-123 --use-current-versionakili dlq replay-batch
Section titled “akili dlq replay-batch”Replay multiple DLQ entries in a single operation.
Flags:
| Flag | Short | Default | Description |
|---|---|---|---|
--ids | Comma-separated list of DLQ entry IDs (required) | ||
--use-current-version | false | Replay using the current product version |
Examples:
# Replay multiple entriesakili dlq replay-batch --ids dlq-abc-123,dlq-def-456,dlq-ghi-789
# Replay with current versionakili dlq replay-batch --ids dlq-abc-123,dlq-def-456 --use-current-versionakili dlq purge <id>
Section titled “akili dlq purge <id>”Purge (permanently delete) a single DLQ entry.
Arguments:
| Argument | Type | Required | Description |
|---|---|---|---|
id | string | yes | DLQ entry ID |
Examples:
# Purge a single entryakili dlq purge dlq-abc-123akili dlq purge-all
Section titled “akili dlq purge-all”Bulk purge DLQ entries older than a specified number of days. Requires the --confirm flag.
Flags:
| Flag | Short | Default | Description |
|---|---|---|---|
--older-than-days | Purge entries older than this many days (required) | ||
--confirm | false | Confirm the bulk purge (required) |
Examples:
# Purge entries older than 30 daysakili dlq purge-all --older-than-days 30 --confirm
# Without --confirm, the command will fail:akili dlq purge-all --older-than-days 30# ERROR: Use --confirm to purge DLQ entries older than 30 days