Initiation of Provider on startu FastAPI #692
Unanswered
theobouwman
asked this question in
Q&A
Replies: 1 comment
|
calling Additionally, in the latest version |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
How can I instantiate this provider on startup:
Currently with this setup the template_bandit_runtime_holder only gets called when an API route is called. But I need this object to be available and instantiated on app startup before requests are accepted.
This is a workaround I created:
But I image dishka supports this out of the box?
All reactions