Declare the classic dead-letter topology, reject terminal worker outcomes without requeue, and add coverage for malformed messages and retry jitter.
11 lines
439 B
Bash
Executable File
11 lines
439 B
Bash
Executable File
#!/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
|