You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
5b8f667e55
This is instead of the commit we reverted in the previous commit. The problem is that django keeps the connection per thread and it relies on django itself to clean them up before/after connections. We can't do this, because django is unaware of fastapi, so we have to manage this ourselves. The easiest way is to call it at the beginning of evenry route and every dep. We need to do it for each because unfortunately fastapi may send them to different worker threads. |
4 years ago | |
---|---|---|
.. | ||
routers | 4 years ago | |
sendfile | 4 years ago | |
__init__.py | 4 years ago | |
db_hack.py | 4 years ago | |
dependencies.py | 4 years ago | |
exceptions.py | 4 years ago | |
main.py | 4 years ago | |
msgpack.py | 4 years ago | |
stoken_handler.py | 4 years ago | |
utils.py | 4 years ago |