Scheduler config
This commit is contained in:
@@ -11,6 +11,7 @@ https://docs.djangoproject.com/en/5.1/ref/settings/
|
||||
"""
|
||||
|
||||
from pathlib import Path
|
||||
from scheduler.types import SchedulerConfiguration
|
||||
import os
|
||||
|
||||
# Build paths inside the project like this: BASE_DIR / 'subdir'.
|
||||
@@ -128,13 +129,10 @@ SCHEDULER_QUEUES = {
|
||||
'DB': os.environ.get("REDIS_DB", 0),
|
||||
}
|
||||
}
|
||||
SCHEDULER_CONFIG = {
|
||||
|
||||
SCHEDULER_CONFIG = SchedulerConfiguration(
|
||||
'DEFAULT_JOB_TIMEOUT': os.environ.get("JOB_DEFAULT_TIMEOUT", 60*30), # 30 minutes
|
||||
'DEFAULT_TIMEOUT': os.environ.get("JOB_DEFAULT_TIMEOUT", 60*30), # 30 minutes
|
||||
'DEFAULT_RESULT_TTL': 60*60*12, # 12 hours
|
||||
'EXECUTIONS_IN_PAGE': 20,
|
||||
'SCHEDULER_INTERVAL': 10, # 10 seconds
|
||||
}
|
||||
)
|
||||
|
||||
# Password validation
|
||||
|
||||
|
||||
Reference in New Issue
Block a user