File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1+ ENVIRONMENT : " local"
12AUTH__JWKS_URL : " http://oathkeeper:4456/.well-known/jwks.json"
2- DRAMATIQ__REDIS_URL : " redis://redis:6379/0"
3+ # DRAMATIQ__REDIS_URL: "redis://redis:6379/0"
34OTEL_EXPORTER_OTLP_ENDPOINT : " http://otel-collector:4317"
Original file line number Diff line number Diff line change @@ -37,8 +37,11 @@ def init_dramatiq(config: AppConfig):
3737 else :
3838 broker = StubBroker ()
3939 # broker.emit_after("process_boot")
40- if config .ENVIRONMENT != "test" :
41- logging .critical ("Running a non-test environment without Redis URL set" )
40+ if config .ENVIRONMENT not in ["test" , "local" ]:
41+ logging .critical (
42+ "Running a non-test/non-local environment without Redis URL set" ,
43+ extra = {"ENVIRONMENT" : config .ENVIRONMENT }
44+ )
4245 broker .add_middleware (AsyncIO ())
4346 set_broker (broker )
4447 set_encoder (ORJSONEncoder ())
You can’t perform that action at this time.
0 commit comments