forked from mtusi2026/mtusi2026lab5
ЛР5
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
python student-tests/worker_crash.py
|
||||
A. worker_after_objects armed; upload -> 202 (7d0b4994-daec-489f-ab0c-fbad47e60ff5)
|
||||
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 (d37dd53f-e784-47ba-9351-af5c9b091bd5)
|
||||
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
|
||||
Reference in New Issue
Block a user