ЛР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
+16
View File
@@ -0,0 +1,16 @@
# jobs-outbox
# date: 2026-11-11T23:57:25 commit: 276dbda
$ C:\Users\79152\AppData\Local\Python\pythoncore-3.14-64\python.exe student-tests/jobs.py --base-url http://localhost:8080 --scenario outbox
== crash API между COMMIT и publish (transactional outbox) ==
ok - client did NOT get 202: API died after COMMIT (got 502)
ok - attachment and job were committed before the crash (1 new)
ok - relay-published job: status ready, error_code null
ok - relay-published job: variants thumbnail+crop+optimized (['thumbnail', 'crop', 'optimized'])
ok - relay-published job: original byte-for-byte
ok - relay-published job: thumbnail 256x160, sha256 matches
ok - outbox row published by relay (no new job created)
[outbox: 20s]
7 passed, 0 failed
[exit 0]