Enable the ThreadPool when TUBESYNC_WORKERS is used

This commit is contained in:
tcely authored and GitHub committed 2025-04-08 14:45:44 -04:00
1 parent e12aa28a2b
commit 48bca2b996
1 file changed
+2
@@ -62,6 +62,8 @@ else:
DEFAULT_THREADS = 1
BACKGROUND_TASK_ASYNC_THREADS = getenv('TUBESYNC_WORKERS', DEFAULT_THREADS, integer=True)
if BACKGROUND_TASK_ASYNC_THREADS > 1:
BACKGROUND_TASK_RUN_ASYNC = True
MEDIA_ROOT = CONFIG_BASE_DIR / 'media'