forked from mtusi2026/mtusi2026lab5
Отделить обработку вложений от приёма файла.
Upload отвечает 202 после staging и записи задания, worker через RabbitMQ собирает thumbnail, crop и optimized и переживает разрыв до publish. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+1
-1
@@ -283,7 +283,7 @@ async def add_message(
|
||||
str(found[item]["chat_id"]) != chat_id for item in attachment_ids
|
||||
):
|
||||
return None, "not_found"
|
||||
if any(found[item]["status"] != "ready" for item in attachment_ids):
|
||||
if any(found[item]["status"] == "failed" for item in attachment_ids):
|
||||
return None, "not_ready"
|
||||
resolved = attachment_ids
|
||||
message_id = uuid4()
|
||||
|
||||
Reference in New Issue
Block a user