forked from mtusi2026/mtusi2026lab5
10 lines
888 B
Plaintext
10 lines
888 B
Plaintext
python student-tests/worker_crash.py
|
|
A. worker_after_objects armed; upload -> 202 (29951699-589c-4919-8291-a58289f70dff)
|
|
the worker crashed after writing objects (restart count 0 -> 1); objects left by the crashed attempt: 3
|
|
events: queued(1) -> claimed(1) -> lease_expired(1) -> retry_scheduled(1) -> claimed(2) -> ready(2)
|
|
ready at attempt 2; same keys and the same SHA-256 as the crashed attempt wrote: ['crop.jpg', 'optimized.webp', 'thumbnail.jpg']; 3 variant rows
|
|
B. worker_after_commit armed; upload -> 202 (50d85920-ab49-4658-9bf8-f61e1ac50181)
|
|
events: queued(1) -> claimed(1) -> ready(1) -> duplicate_ignored(1)
|
|
the redelivered message found the job ready and was acknowledged without processing
|
|
PASS: a worker crash after writing objects but before ack is finished by a retry with the same result; a crash after COMMIT but before ack ends with a no-op redelivery
|