fix: a long film's print file gets a render limit per 15 m part
Order #20 (23.6 m, 24 pieces) failed with "Falhou ao gerar": the whole film had one 15 min limit, and two parts at 300 DPI take longer on the server. The limit is now PRINT_RENDER_TIMEOUT_SECONDS (default 20 min) for each part, and each claim records its deadline, so the stale-claim check and the card's "Tempo limite" follow the same limit. A timeout, or a final failed attempt, is logged as an error so Sentry sees it. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
3
app/migrations/202611121500_print-deadline.sql
Normal file
3
app/migrations/202611121500_print-deadline.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
-- A print file's render limit grows with its film (RENDER_SECONDS per 15 m
|
||||
-- part, app/printjobs.py): each claim records when it counts as abandoned.
|
||||
ALTER TABLE dtf_local.print_files ADD COLUMN IF NOT EXISTS deadline_at timestamptz;
|
||||
Reference in New Issue
Block a user