File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 99
1010
1111class DramatiqConfig (BaseModel ):
12- REDIS_HOST : Optional [str ] = None
12+ REDIS_URL : Optional [str ] = None
1313
1414class CeleryConfig (BaseModel ):
1515 # https://docs.celeryq.dev/en/stable/userguide/configuration.html#configuration
Original file line number Diff line number Diff line change @@ -12,9 +12,9 @@ def init_dramatiq(config: AppConfig):
1212 if config .ENVIRONMENT == "test" :
1313 broker = StubBroker ()
1414 # broker.emit_after("process_boot")
15- elif config .DRAMATIQ .REDIS_HOST is not None :
16- broker = RedisBroker (host = config .DRAMATIQ .REDIS_HOST )
15+ elif config .DRAMATIQ .REDIS_URL is not None :
16+ broker = RedisBroker (host = config .DRAMATIQ .REDIS_URL )
1717 else :
18- raise RuntimeError ("Running a non-test environment without Redis host set" )
18+ raise RuntimeError ("Running a non-test environment without Redis URL set" )
1919 broker .add_middleware (AsyncIO ())
2020 set_broker (broker )
You can’t perform that action at this time.
0 commit comments