feat: add celery job queue

This commit is contained in:
Felix Spöttel
2023-01-06 16:48:06 +01:00
parent c90915ba40
commit e41c07fd4b
11 changed files with 83 additions and 56 deletions

View File

@@ -4,13 +4,10 @@ from pydantic import BaseSettings
class Settings(BaseSettings):
API_SECRET: str
DATABASE_URI: str
ENVIRONMENT: str
API_SECRET: str
class Config:
env_file = ".env"
env_file_encoding = "utf-8"
REDIS_URI: str
if "ENVIRONMENT" in os.environ and os.environ["ENVIRONMENT"] == "test":