feature: create multitasking
This commit is contained in:
@@ -75,6 +75,14 @@ class Settings(BaseSettings):
|
||||
alias="GOOGLE_APPLICATION_CREDENTIALS",
|
||||
)
|
||||
|
||||
# Redis / Dramatiq
|
||||
redis_url: str = Field(default="redis://localhost:6379/0", alias="REDIS_URL")
|
||||
|
||||
# Webhook / Task settings
|
||||
webhook_base_url: str = Field(
|
||||
default="http://localhost:8000", alias="WEBHOOK_BASE_URL"
|
||||
)
|
||||
|
||||
def get_database_url(self) -> str:
|
||||
if self.database_url:
|
||||
return self.database_url
|
||||
|
||||
Reference in New Issue
Block a user