mirror of
https://github.com/rishikanthc/Scriberr.git
synced 2026-07-01 08:15:46 +00:00
The QUEUE_WORKERS environment variable was defined and read in getOptimalWorkerCount(), but NewTaskQueue() unconditionally overwrote the result with the hardcoded legacyWorkers parameter (always 2). This made QUEUE_WORKERS effectively dead code. Now legacyWorkers is only used as a fallback when QUEUE_WORKERS is not set, preserving the default of 2 workers while allowing users to control concurrency via the environment variable. Set QUEUE_WORKERS=1 to serialize all transcription jobs and prevent system overload during bulk uploads. Fixes: rishikanthc/Scriberr#379 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>