14 lines
1.2 KiB
Plaintext
14 lines
1.2 KiB
Plaintext
python student-tests/worker_outage.py
|
||
1. worker stopped: no running worker containers
|
||
2. upload -> 202 queued, attachment_id=58fc7ebe-6b35-4894-8af6-aad8f620136a
|
||
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)
|
||
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)}
|
||
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)
|
||
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
|