исправление

This commit is contained in:
2026-10-26 19:40:34 +03:00
parent a591243d80
commit aaab3ac8b2
37 changed files with 1749 additions and 389 deletions
+10 -10
View File
@@ -1,13 +1,13 @@
python student-tests/concurrency.py
time s | processing (DB) | unacked (broker) | waiting in queue
2.5 | 2 | 0 | 0
7.1 | 2 | 2 | 4
10.4 | 2 | 2 | 2
13.4 | 2 | 2 | 2
16.1 | 2 | 2 | 2
20.5 | 2 | 2 | 0
23.3 | 2 | 2 | 0
26.5 | 2 | 2 | 0
29.4 | 0 | 0 | 0
peak: 2 jobs in processing, 2 unacknowledged messages, up to 4 waiting in the queue; all 6 ready after 29.4 s
2.4 | 2 | 0 | 0
5.0 | 2 | 2 | 4
7.6 | 2 | 2 | 4
11.6 | 2 | 2 | 4
14.3 | 2 | 2 | 2
17.1 | 2 | 2 | 2
19.7 | 2 | 2 | 0
23.8 | 2 | 2 | 0
26.5 | 0 | 2 | 0
peak: 2 jobs in processing, 2 unacknowledged messages, up to 4 waiting in the queue; all 6 ready after 26.5 s
PASS: at most WORKER_CONCURRENCY=2 jobs run at once and the broker gives the worker at most prefetch=2 messages; the rest wait in the durable queue