missing default setting for container build
This commit is contained in:
parent
51cd942717
commit
e36658e1a1
|
@ -29,6 +29,7 @@ DATABASES = {
|
||||||
}
|
}
|
||||||
|
|
||||||
DEFAULT_THREADS = 2
|
DEFAULT_THREADS = 2
|
||||||
|
MAX_BACKGROUND_TASK_ASYNC_THREADS = 8
|
||||||
BACKGROUND_TASK_ASYNC_THREADS = int(os.getenv('TUBESYNC_WORKERS', DEFAULT_THREADS))
|
BACKGROUND_TASK_ASYNC_THREADS = int(os.getenv('TUBESYNC_WORKERS', DEFAULT_THREADS))
|
||||||
if BACKGROUND_TASK_ASYNC_THREADS > MAX_BACKGROUND_TASK_ASYNC_THREADS:
|
if BACKGROUND_TASK_ASYNC_THREADS > MAX_BACKGROUND_TASK_ASYNC_THREADS:
|
||||||
BACKGROUND_TASK_ASYNC_THREADS = MAX_BACKGROUND_TASK_ASYNC_THREADS
|
BACKGROUND_TASK_ASYNC_THREADS = MAX_BACKGROUND_TASK_ASYNC_THREADS
|
||||||
|
|
Loading…
Reference in New Issue