ЛР5: брокер Redis Streams, worker, outbox, retry/DLQ/replay, варианты

This commit is contained in:
LOSYASH
2026-11-12 15:14:48 +01:00
parent 276dbdad8a
commit b4804ac5c1
98 changed files with 9131 additions and 38 deletions
+17
View File
@@ -0,0 +1,17 @@
# jobs-broker-down
# date: 2026-11-11T23:55:16 commit: 276dbda
$ C:\Users\79152\AppData\Local\Python\pythoncore-3.14-64\python.exe student-tests/jobs.py --base-url http://localhost:8080 --scenario broker-down
== брокер недоступен: приём не зависит от брокера (transactional outbox) ==
ok - /health/ready = 200: broker is not critical for API
ok - upload → 202 queued while broker is down (2.1s, publish timeout ≤ 2s)
ok - intent kept in outbox, not published yet
ok - after broker is back: status ready, error_code null
ok - after broker is back: variants thumbnail+crop+optimized (['thumbnail', 'crop', 'optimized'])
ok - after broker is back: original byte-for-byte
ok - after broker is back: thumbnail 256x160, sha256 matches
ok - relay published the outbox row when broker came back
[broker-down: 14s]
8 passed, 0 failed
[exit 0]