Skip to content

Why add scheduler as middleware in fastapi example #797

Answered by agronholm
NixBiks asked this question in Q&A
Discussion options

You must be logged in to vote

As the documentation states, the async scheduler must be used as a context manager to manage its life cycle and initialize the data store and event broker.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@NixBiks
Comment options

@agronholm
Comment options

@hasansezertasan
Comment options

@Jdsleppy
Comment options

Answer selected by NixBiks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants