python student-tests/attachment_failover.py
uploaded 111817 bytes -> 202 queued, sha256 99ea7533c441f79c..., served by api replica b0db3e40abfe
SERVICE   CONTAINER     STATE                STARTED AT (UTC)
api       b0db3e40abfe  running (healthy)    2026-10-25T18:23:36.991
api       ef44b0d4c0a1  running (healthy)    2026-10-25T18:23:36.756
broker    9f909ed7ecea  running (healthy)    2026-10-25T18:23:53.670
lb        8be67a2e86b7  running (healthy)    2026-10-25T18:20:04.043
migrate   e6c2c825d38d  exited               2026-10-25T18:28:07.167
postgres  d2bfd48385f1  running (healthy)    2026-10-25T18:19:54.204
s3        892c7ca290f2  running (healthy)    2026-10-25T18:19:54.206
s3-init   08c2e7925d67  exited               2026-10-25T18:28:07.169
valkey    4e223cb9301e  running (healthy)    2026-10-25T18:19:54.202
worker    d9eced386d93  running (healthy)    2026-10-25T18:28:09.870
stopped b0db3e40abfe (docker stop) right after 202; HAProxy: api1 DOWN, api2 UP
the worker finished the job without that replica: status ready, variants ['thumbnail', 'crop', 'optimized']
downloaded 4 times through ['ef44b0d4c0a1']: same SHA-256 as uploaded
restored b0db3e40abfe; HAProxy: api1 UP, api2 UP
SERVICE   CONTAINER     STATE                STARTED AT (UTC)
api       b0db3e40abfe  running (healthy)    2026-10-25T18:28:33.999
api       ef44b0d4c0a1  running (healthy)    2026-10-25T18:23:36.756
broker    9f909ed7ecea  running (healthy)    2026-10-25T18:23:53.670
lb        8be67a2e86b7  running (healthy)    2026-10-25T18:20:04.043
migrate   e6c2c825d38d  exited               2026-10-25T18:28:07.167
postgres  d2bfd48385f1  running (healthy)    2026-10-25T18:19:54.204
s3        892c7ca290f2  running (healthy)    2026-10-25T18:19:54.206
s3-init   08c2e7925d67  exited               2026-10-25T18:28:07.169
valkey    4e223cb9301e  running (healthy)    2026-10-25T18:19:54.202
worker    d9eced386d93  running (healthy)    2026-10-25T18:28:09.870
PASS: the replica that accepted the upload was stopped right after 202; the job still became ready and another replica returned the same bytes (the original lives in S3, not on the replica)
