diff --git a/src/timessquare/config.py b/src/timessquare/config.py index 9c673939..1455e94e 100644 --- a/src/timessquare/config.py +++ b/src/timessquare/config.py @@ -74,7 +74,9 @@ class Config(BaseSettings): redis_url: RedisDsn = Field( env="TS_REDIS_URL", - default_factory=lambda: RedisDsn("redis://localhost:6379/0"), + default_factory=lambda: RedisDsn( + "redis://localhost:6379/0", scheme="redis" + ), ) """URL for the redis instance, used by the worker queue.""" @@ -107,7 +109,9 @@ class Config(BaseSettings): redis_queue_url: RedisDsn = Field( env="TS_REDIS_QUEUE_URL", - default_factory=lambda: RedisDsn("redis://localhost:6379/1"), + default_factory=lambda: RedisDsn( + "redis://localhost:6379/1", scheme="redis" + ), ) queue_name: str = Field("arq:queue", env="TS_REDIS_QUEUE_NAME")