feat: route terminal jobs to a durable DLQ

Declare the classic dead-letter topology, reject terminal worker outcomes
without requeue, and add coverage for malformed messages and retry jitter.
This commit is contained in:
Самохвалов Андрей Ремович
2026-11-27 14:15:44 +03:00
parent 2c46d02205
commit e7f68aa69c
14 changed files with 550 additions and 85 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -euo pipefail
source "$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)/demo-common.sh"
demo_preflight
echo
echo "== DLQ: terminal outcomes are rejected without requeue and routed via DLX =="
echo "The test checks a malformed message and a permanently invalid image, then removes both test messages from the DLQ."
docker compose --env-file .env run --rm --no-deps -T worker python - < student-tests/test_dlq.py