feature: create multitasking

This commit is contained in:
Daniil
2026-02-04 02:19:50 +03:00
parent 67e0f22b4f
commit a25bf623ea
24 changed files with 5227 additions and 21 deletions
+8
View File
@@ -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