ЛР 5: асинхронная обработка изображений и идемпотентность pipeline

This commit is contained in:
R0flyan
2026-11-06 17:56:33 +03:00
parent 276dbdad8a
commit 05641f0bf4
48 changed files with 3554 additions and 41 deletions
+1
View File
@@ -0,0 +1 @@
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
+3
View File
@@ -0,0 +1,3 @@
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 115, "failed_attempts": 4, "first_recovery_seconds": 3.881}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
+9
View File
@@ -0,0 +1,9 @@
=== Symbol Results ===
No vulnerabilities found.
Your code is affected by 0 vulnerabilities.
This scan also found 0 vulnerabilities in packages you import and 3
vulnerabilities in modules you require, but your code doesn't appear to call
these vulnerabilities.
Use '-show verbose' for more details.
+3
View File
@@ -0,0 +1,3 @@
image/jpeg attachment=7fc7382c-c1ff-4606-a3cc-712eaa50fdbf dimensions=[(85, 256), (128, 128), (100, 300)]
image/png attachment=612a2488-bb20-420a-a19b-2611f27737b3 dimensions=[(8, 4), (128, 128), (8, 4)]
PASS EXIF, fit, crop, WebP, transparency, metadata removal, byte/pixel/format limits
+1
View File
@@ -0,0 +1 @@
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
+2
View File
@@ -0,0 +1,2 @@
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
+91
View File
@@ -0,0 +1,91 @@
[
{
"scenario": "api_broker_restart_with_worker_stopped",
"attachment_id": "ac9f52f0-8b17-4613-9b4e-01918c60f164",
"seconds": 39.867,
"message_id": "977f8ad3-4a55-4a2f-b5b8-7281aee9f733",
"job_id": "dec6b536-d9d5-4371-9b06-5a8ded18b3e0",
"processes_restarted": 3
},
{
"scenario": "before_publish",
"attachment_id": "fb18b732-4e70-4fb7-9808-a5f338520c00",
"seconds": 28.952,
"copies": 1,
"attempt": 1
},
{
"scenario": "after_publish",
"attachment_id": "83af5eda-3f01-44b1-ab41-2d8c3dcae9f6",
"seconds": 29.022,
"copies": 2,
"attempt": 1
},
{
"scenario": "before_effect",
"attachment_id": "1bbb2aaa-d551-443d-86b7-3bcc8a0d0ebe",
"seconds": 60.844,
"state_at_crash": "processing",
"object_at_crash": false,
"final_attempt": 2,
"staging_removed": true
},
{
"scenario": "after_effect",
"attachment_id": "c40aa0c1-8d91-44c5-a7f9-e464194164c5",
"seconds": 88.928,
"state_at_crash": "processing",
"object_at_crash": true,
"final_attempt": 2,
"staging_removed": true
},
{
"scenario": "after_commit",
"attachment_id": "193dbffc-a5ae-4d45-a2eb-01457874ad8f",
"seconds": 48.973,
"state_at_crash": "ready",
"object_at_crash": true,
"final_attempt": 1,
"staging_removed": true
},
{
"scenario": "invalid_image_replay",
"attachment_id": "e85abbd1-4069-41c6-9d23-b1aacdbcf8f2",
"seconds": 42.186,
"failed_attempt": 1,
"error_code": "invalid_image",
"retry_delays_ms": {},
"replay_audit": 1
},
{
"scenario": "temporary_replay",
"attachment_id": "5d4083f7-5649-4efe-9f6b-ad4360380194",
"seconds": 73.706,
"failed_attempt": 5,
"error_code": "retry_exhausted",
"retry_delays_ms": {
"2": 1628,
"3": 2080,
"4": 6975,
"5": 12512
},
"replay_audit": 1
},
{
"scenario": "reorder_and_stale_version",
"attachment_id": "44f672bb-b13e-4910-ada6-8826531561c4",
"seconds": 62.444,
"delivery_versions": [
2,
1,
2,
1,
2
],
"result_version": 2,
"attempts": [
1,
1
]
}
]
+9
View File
@@ -0,0 +1,9 @@
52196e225aa0c30cb3b8e137294544e553a3c711bbeccec9050dc89eb2ff7a21 api 2026-11-05T11:17:40.315162038Z running
a500b4905027d34bfd298158d98df1cac489a2809f7bde08e232df13c8a7263f api 2026-11-05T11:17:40.339787099Z running
b35f0f1b79f444793b3df4e4c68b4afc05d9c97b08c0a30392d797f3a080a9be broker 2026-11-05T11:17:39.017739902Z running
a47468ebeefaa9c3b052ac1f801cae716a109a062b4f64734219c79f7c52e8d8 db 2026-11-05T11:17:39.235121485Z running
7ecc90a34761bd4ee79d05b72cecc0138fb82e0cabbad464fcc111f6e21a6ddd dispatcher 2026-11-05T11:17:41.119753562Z running
89d66e72f743c002310046f7fd8fe7999e84a0afbf21d7d75492bf4c25f55e38 lb 2026-11-05T11:17:39.636866059Z running
73b0478b615f5b64f9b1521869ff5117cac557e3f9a99eaee0edc2c1ad50d685 s3 2026-11-05T11:17:38.846869865Z running
23c968fe12bb060c64fd9c1968f1246ca27be3d658f0a86e40076576047ff050 valkey 2026-11-05T11:17:39.102087274Z running
42f10feab1bf81d4ca84e9753fedf2777b544c874eb70cece6d1d31a0f14d9c9 worker 2026-11-05T11:17:39.842033858Z running
+9
View File
@@ -0,0 +1,9 @@
52196e225aa0c30cb3b8e137294544e553a3c711bbeccec9050dc89eb2ff7a21 api 2026-11-05T11:08:41.229724315Z running
a500b4905027d34bfd298158d98df1cac489a2809f7bde08e232df13c8a7263f api 2026-11-05T11:08:41.185233575Z running
b35f0f1b79f444793b3df4e4c68b4afc05d9c97b08c0a30392d797f3a080a9be broker 2026-11-05T11:08:39.817778853Z running
a47468ebeefaa9c3b052ac1f801cae716a109a062b4f64734219c79f7c52e8d8 db 2026-11-05T11:04:20.990065265Z running
7ecc90a34761bd4ee79d05b72cecc0138fb82e0cabbad464fcc111f6e21a6ddd dispatcher 2026-11-05T11:09:52.937079509Z running
89d66e72f743c002310046f7fd8fe7999e84a0afbf21d7d75492bf4c25f55e38 lb 2026-11-05T11:02:00.180487515Z running
73b0478b615f5b64f9b1521869ff5117cac557e3f9a99eaee0edc2c1ad50d685 s3 2026-11-05T11:01:56.746828889Z running
23c968fe12bb060c64fd9c1968f1246ca27be3d658f0a86e40076576047ff050 valkey 2026-11-05T11:01:56.735026576Z running
42f10feab1bf81d4ca84e9753fedf2777b544c874eb70cece6d1d31a0f14d9c9 worker 2026-11-05T11:16:21.654964917Z running
+1
View File
@@ -0,0 +1 @@
PASS: lab5 public API scenario; infrastructure and grading evidence remain separate.
+1
View File
@@ -0,0 +1 @@
52196e225aa0c30cb3b8e137294544e553a3c711bbeccec9050dc89eb2ff7a21 exited 2026-11-05T11:22:28.153861915Z 0
+1
View File
@@ -0,0 +1 @@
52196e225aa0c30cb3b8e137294544e553a3c711bbeccec9050dc89eb2ff7a21 running 2026-11-05T11:17:40.315162038Z