-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with flask restful and async #30
Comments
flask-restful/flask-restful#917 it doesn't seem like async support will be added anytime soon, so flask restful will be removed |
I ran into an issue where async functions with decorators don't work. Will go back to this issue at a later point Error message:
|
I tried using flask method views to allow us to use async with our OOP controller model. However, according to this page https://flask.palletsprojects.com/en/2.3.x/async-await/ , flask method views don't support async. Thus, the only way for us to have async is to not have our controllers wrapped in classes and use blueprints. |
moved to #40 |
Flask Restful is a python module that allows routes to be formatted in a nice OOP model.
The problem with flask restful is that it does not support async. This is very problematic for performance since our DB and route calls will be blocking.
See if it's possible to add async support. If not, drop flask restful and just use regular blueprints.
The text was updated successfully, but these errors were encountered: