mirror of
https://github.com/bellingcat/whisperbox-transcribe.git
synced 2026-06-13 05:58:35 +03:00
feat: add task time limit settings, hard time limit
This commit is contained in:
@@ -8,6 +8,9 @@ class Settings(BaseSettings):
|
||||
DATABASE_URI: str
|
||||
ENVIRONMENT: str
|
||||
|
||||
TASK_SOFT_TIME_LIMIT: int = 3 * 60 * 60
|
||||
TASK_HARD_TIME_LIMIT: int = 4 * 60 * 60
|
||||
|
||||
# derived settings
|
||||
BROKER_URL: str
|
||||
|
||||
@@ -17,4 +20,4 @@ if "pytest" in sys.modules:
|
||||
_env_file=".env.test", _env_file_encoding="utf-8"
|
||||
) # type: ignore
|
||||
else:
|
||||
settings = Settings()
|
||||
settings = Settings() # type: ignore
|
||||
|
||||
Reference in New Issue
Block a user