Skip to content

Is there a way to delay configuration of the Router? #86

Closed Answered by Lancetnik
tolmanam asked this question in Questions
Discussion options

You must be logged in to vote

@tolmanam sure, you can specify all connection arguments at broker.connect() method

Example from documentation:

from propan import RedisBroker
broker = RedisBroker()
...
await broker.connect("redis://localhost:6379/")

Also, please, generate any Propan template by the command:

propan create async ... project

At project/app/serve.py you will find a configuration from .env file example in app.on_startup hook

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tolmanam
Comment options

Answer selected by Lancetnik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants