Отделить обработку вложений от приёма файла.

Upload отвечает 202 после staging и записи задания, worker через RabbitMQ собирает thumbnail, crop и optimized и переживает разрыв до publish.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-11-09 01:08:24 +03:00
co-authored by Cursor
parent 9046d5206d
commit f2a3698480
24 changed files with 1579 additions and 82 deletions
+2 -2
View File
@@ -180,7 +180,7 @@ def memory_sample():
check=False,
)
for line in stats.stdout.splitlines():
if "mtusi2026lab4-api-" in line:
if "mtusi2026lab5-api-" in line:
samples.append(line.strip())
time.sleep(0.4)
@@ -192,7 +192,7 @@ def memory_sample():
for thread in threads:
thread.join()
watcher.join()
if codes.count(201) != 10:
if codes.count(202) != 10:
raise SystemExit("concurrent uploads %s" % codes)
def mib(line):