ЛР5: брокер RabbitMQ, worker, outbox, retry/DLQ/replay, трек 1

This commit is contained in:
2026-11-12 13:29:23 +03:00
parent 276dbdad8a
commit 726c77156e
66 changed files with 7731 additions and 18 deletions
+73
View File
@@ -0,0 +1,73 @@
{
"scenario": "api-crash",
"result": "PASS",
"started_at": "2026-11-11T23:24:10Z",
"fault": "API os.Exit right after COMMIT(queued+job+outbox), before publish and before HTTP response",
"attachment_id": "4e18930b-bd0f-4db5-a033-35fbd74c93a1",
"client_view": "client saw failure: -a15d-9d5fe0759a8c/attachments: expected [202], received 502",
"job_right_after_crash": {
"job_id": "8dadbdde-897c-4acb-ae12-b7565b03dbb4",
"status": "ready",
"attempt": 1,
"max_attempts": 5,
"error_code": "",
"variant_rows": 3,
"outbox_rows": 1,
"outbox_unpublished": 0,
"staging_removed": true
},
"api_restart_counts_before": {
"78c8984ff002": 0,
"4c38672b42d2": 0
},
"api_restart_counts_after": {
"78c8984ff002": 1,
"4c38672b42d2": 0
},
"statuses_seen": [
"ready"
],
"events": [
{
"attempt": "1",
"event": "queued",
"error_code": "",
"at": "23:24:12.312"
},
{
"attempt": "1",
"event": "started",
"error_code": "",
"at": "23:24:12.463"
},
{
"attempt": "1",
"event": "ready",
"error_code": "",
"at": "23:24:12.538"
}
],
"job_after": {
"job_id": "8dadbdde-897c-4acb-ae12-b7565b03dbb4",
"status": "ready",
"attempt": 1,
"max_attempts": 5,
"error_code": "",
"variant_rows": 3,
"outbox_rows": 1,
"outbox_unpublished": 0,
"staging_removed": true
},
"ready_check": {
"variants": {
"thumbnail": "image/jpeg 256x160 5620B",
"crop": "image/jpeg 128x128 2440B",
"optimized": "image/webp 320x200 2462B"
},
"thumbnail_real_jpeg_size": [
256,
160
],
"original_sha256_ok": true
}
}