This repository has been archived on 2026-05-31. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
imagerepo/app/tasks
bvandeusen 09b6146656 fix(ml): bump tag_and_embed time limits + handle SoftTimeLimitExceeded
The deployed worker hit soft_time_limit=120s on a video that took longer
than that to process — 10-frame SigLIP on CPU is ~10-15s/frame plus WD14,
so 120s (and even the prior 240s in source) was tight for any non-trivial
video.

- soft_time_limit: 240 -> 900 (15min), time_limit: 360 -> 1200 (20min).
  Gives videos comfortable headroom on CPU.
- Catch SoftTimeLimitExceeded explicitly so the task ends with a clean
  'soft_time_limit' status instead of bubbling up + retrying through
  self.retry(). Retrying a CPU-bound timeout is pointless — same input,
  same wall.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-26 09:45:12 -04:00
..