issues with dupe background async worker threads, drop defaults back down to 1 worker

This commit is contained in:
meeb 2020-12-21 03:04:54 +11:00
parent d92dbde781
commit 387cfefc8f
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ DATABASES = {
}
}
DEFAULT_THREADS = 2
DEFAULT_THREADS = 1
MAX_BACKGROUND_TASK_ASYNC_THREADS = 8
BACKGROUND_TASK_ASYNC_THREADS = int(os.getenv('TUBESYNC_WORKERS', DEFAULT_THREADS))
if BACKGROUND_TASK_ASYNC_THREADS > MAX_BACKGROUND_TASK_ASYNC_THREADS: