forked from mtusi2026/mtusi2026lab5
9 lines
1.1 KiB
Plaintext
9 lines
1.1 KiB
Plaintext
python student-tests/redelivery.py
|
|
1. attachment 0e1796c4-b771-4b97-a8d6-27f3d24d5dd4 ready: 3 variant rows, objects ['variants/0e1796c4-b771-4b97-a8d6-27f3d24d5dd4/v1/crop.jpg', 'variants/0e1796c4-b771-4b97-a8d6-27f3d24d5dd4/v1/optimized.webp', 'variants/0e1796c4-b771-4b97-a8d6-27f3d24d5dd4/v1/thumbnail.jpg']
|
|
2. the same message (same job_id and attempt) published twice more
|
|
3. both duplicates acknowledged without processing: duplicate_ignored(задание уже ready: повторная доставка, ack без обработки), duplicate_ignored(задание уже ready: повторная доставка, ack без обработки)
|
|
variants: [('crop', '97bf1400b30a'), ('optimized', '1090d84ed841'), ('thumbnail', '7bc40bf315c8')] — same rows, same objects, status ready, attempt 1
|
|
4. 3 messages that do not match jobs.schema.json -> reject -> DLQ attachments.dead: 34 -> 37
|
|
the worker keeps working: a new upload became ready
|
|
PASS: redelivery of a finished job is a no-op with ack (no second set of variants); malformed messages go to the DLQ without crashing the worker
|