missing default setting for container build

This commit is contained in:
meeb 2020-12-20 17:57:04 +11:00
parent 51cd942717
commit e36658e1a1
1 changed files with 1 additions and 0 deletions

View File

@ -29,6 +29,7 @@ DATABASES = {
}
DEFAULT_THREADS = 2
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:
BACKGROUND_TASK_ASYNC_THREADS = MAX_BACKGROUND_TASK_ASYNC_THREADS