Enable the ThreadPool when TUBESYNC_WORKERS is used
This commit is contained in:
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'
|
||||
|
||||
Reference in new issue
Block a user