лр7: Docker-прогон, evidence, исправления
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
kalibr456
2026-11-07 20:17:11 +03:00
parent 20afc2c790
commit cb38fd5231
249 changed files with 114500 additions and 82 deletions
+16
View File
@@ -0,0 +1,16 @@
# jobs-recovery: lab5: worker down -> 202 -> restart api+broker -> ready; broker down -> outbox waits
# date: 2026-11-07 15:13:44, commit: 5bfc53a + uncommitted changes
# command: python student-tests/test_jobs.py worker-down broker-down
# exit code: 0, 30.6 s
--- worker-down: Защита п.2-3: worker остановлен -> 202 -> сообщение с вложением -> рестарт API+broker -> worker -> ready.
worker stopped
upload while worker is down -> 202 queued, attachment 6f25aa5c-c235-40f8-bf9f-520404807cab
message with attachment 201, content 409, other messages 201; job 182a3066-efb5-453d-8d2a-c906da4ac027 published, queue messages/unacked = (1, 1)
rabbitmq and api restarted with volumes; queue still holds 1 message(s); status queued
worker started -> same job 182a3066-efb5-453d-8d2a-c906da4ac027 ready, thumbnail downloadable; staging object deleted
--- broker-down: Брокер недоступен: API принимает (outbox), dispatcher копит и публикует после восстановления.
rabbitmq stopped
upload -> 202 and /health/ready 200 without broker; outbox row pending for job 4d076cc6-0e4e-4ec7-ba03-10b557817907
rabbitmq started -> dispatcher published the pending row -> ready
2 passed, 0 failed