Add formulas to settings

This commit is contained in:
tcely 2025-01-31 09:05:11 -05:00 committed by GitHub
parent 65873a5963
commit b66073dcd2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -188,6 +188,12 @@ except ImportError as e:
sys.stderr.write(f'Unable to import local_settings: {e}\n')
sys.exit(1)
# Formulas: Do not touch! Modify the inputs instead.
DOWNLOAD_MEDIA_DELAY = 60 + int(MAX_RUN_TIME / 20)
if BACKGROUND_TASK_ASYNC_THREADS > MAX_BACKGROUND_TASK_ASYNC_THREADS:
BACKGROUND_TASK_ASYNC_THREADS = MAX_BACKGROUND_TASK_ASYNC_THREADS
from .dbutils import patch_ensure_connection
patch_ensure_connection()