ЛР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
+12
View File
@@ -0,0 +1,12 @@
# worker-limits
# date: 2026-11-11T23:54:14 commit: 276dbda
$ docker compose --env-file .env exec -T api python -m app.tools limits-selftest
ok normal 320x200 with alpha: ok (3.3s)
ok pixel limit (36 Mp > limit 10 Mp): invalid_image: pixel limit (3.8s)
ok memory limit (36 Mp, RLIMIT_AS 120 MiB): invalid_image: memory limit (2.0s)
ok corrupt/truncated PNG: invalid_image: cannot decode: OSError (2.9s)
ok time limit (hangs 10 s, timeout 2 s): timeout(killed) (2.0s)
5 passed, 0 failed
[exit 0]