Исправить скачивание JPEG и добавить таймаут и DLQ

This commit is contained in:
Nik
2026-11-25 16:39:03 +03:00
parent d193e6c857
commit 0bb5c18d4b
10 changed files with 368 additions and 147 deletions
+6
View File
@@ -0,0 +1,6 @@
ALTER TABLE attachment_jobs ADD COLUMN IF NOT EXISTS dead_letter_id UUID;
-- Adopt already failed jobs when upgrading an existing Lab 5 database.
UPDATE attachment_jobs j SET dead_letter_id=gen_random_uuid(), published_at=NULL
FROM attachments a
WHERE a.id=j.attachment_id AND a.status='failed' AND j.dead_letter_id IS NULL;