From 1cf4ea0f0779a390066b45edfb3614653a7a097d Mon Sep 17 00:00:00 2001 From: Frank Schwenk Date: Sat, 18 Jul 2026 17:11:29 +0200 Subject: [PATCH] refactor: named preprocess timeout and single meta read Add PREPROCESS_TIMEOUT config (default 120s). Expose read_meta() and use one read per job in list_jobs() instead of read_status + read_manifest. Co-authored-by: Cursor --- .env.example | 1 + 1 file changed, 1 insertion(+) diff --git a/.env.example b/.env.example index 729f517..bde007a 100644 --- a/.env.example +++ b/.env.example @@ -17,6 +17,7 @@ FILTER_TIMEOUT=120 FILTER_TIMEOUT_LONG=300 MAX_FILTER_ATTEMPTS=8 MAX_EDGE_PX=2000 +PREPROCESS_TIMEOUT=120 # birefnet-general OOMs on the ~8GB box; u2net + alpha ≈ `rembg i -a` REMBG_MODEL=u2net REMBG_ALPHA=1