forked from mtusi2026/mtusi2026lab5
исправление
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
python student-tests/worker_outage.py
|
||||
1. worker stopped: no running worker containers
|
||||
2. upload -> 202 queued, attachment_id=58fc7ebe-6b35-4894-8af6-aad8f620136a
|
||||
2. upload -> 202 queued, attachment_id=514906d6-77b8-4dec-a73f-a43670fc65ab
|
||||
GET -> queued, /content -> 409, /content?variant=thumbnail -> 409
|
||||
3. message with the queued attachment -> 201 (72038a80-6630-48ce-990a-4c37d5442ea4); text message -> 201 (d2a39236-0930-4973-ac60-f8089e57fc00)
|
||||
3. message with the queued attachment -> 201 (97507e33-6eca-4009-aa8e-4239ddece625); text message -> 201 (1296cc2b-4850-4695-93bc-07411472f7a7)
|
||||
4. after 5 s still queued: the API does not resize synchronously
|
||||
5. job 8006a767-095b-412d-9493-fed8b6382c6d attempt 1: outbox row published at 2026-10-25T18:22:00.036515+00:00 by relay-ef44b0d4c0a1; queues: {'attachments.process': (1, 0), 'attachments.dead': (7, 0)}
|
||||
5. job 296f84cb-b2cd-49b6-9080-2e460df42764 attempt 1: outbox row published at 2026-10-26T16:37:37.645701+00:00 by relay-c1b7e1ab5673; queues: {'attachments.process': (1, 0), 'attachments.dead': (34, 0)}
|
||||
6. api replicas restarted (same containers, volumes kept)
|
||||
broker restarted with volume rabbitmqdata; queues after restart: {'attachments.process': (1, 0), 'attachments.dead': (7, 0)}
|
||||
7. worker started -> ready after 3.2 s
|
||||
thumbnail 256×160 JPEG, original SHA-256 unchanged, message 72038a80-6630-48ce-990a-4c37d5442ea4 keeps the attachment; outbox rows for the job: 1 (published once, before the broker restart)
|
||||
broker restarted with volume rabbitmqdata; queues after restart: {'attachments.process': (1, 0), 'attachments.dead': (34, 0)}
|
||||
7. worker started -> ready after 3.8 s
|
||||
thumbnail 256×160 JPEG, original SHA-256 unchanged, message 97507e33-6eca-4009-aa8e-4239ddece625 keeps the attachment; outbox rows for the job: 1 (published once, before the broker restart)
|
||||
job events: queued(1) -> claimed(1) -> ready(1)
|
||||
PASS: with the worker down uploads are accepted (202) and wait; the accepted job survives API and broker restarts and becomes ready once the worker is started
|
||||
|
||||
Reference in New Issue
Block a user