introduces dynamic service_account emails read from the group's orchestration files

This commit is contained in:
msramalho
2025-02-11 22:50:00 +00:00
parent 0834f55520
commit 17b3705b64
12 changed files with 88 additions and 15 deletions

View File

@@ -33,11 +33,12 @@ class Settings(BaseSettings):
# redis
REDIS_PASSWORD: str = ""
REDIS_HOSTNAME: str = "localhost"
@property
def CELERY_BROKER_URL(self)-> str:
if self.REDIS_PASSWORD:
return f"redis://:{self.REDIS_PASSWORD}@localhost:6379"
return "redis://localhost:6379"
return f"redis://:{self.REDIS_PASSWORD}@{self.REDIS_HOSTNAME}:6379"
return f"redis://{self.REDIS_HOSTNAME}:6379"
REDIS_EXCEPTIONS_CHANNEL: str = "exceptions-channel"
# observability