Forwarded from Python/ django
https://tenthousandmeters.com/blog/python-behind-the-scenes-12-how-asyncawait-works-in-python/
#asyncio #threads #coroutines
#asyncio #threads #coroutines
Tenthousandmeters
Python behind the scenes #12: how async/await works in Python
Mark functions as async. Call them with await. All of a sudden, your program becomes asynchronous – it can do useful things while it waits for...
2 статьи о сессиях sqlalchemy и celery\gunicorn workers
https://www.yangster.ca/post/not-the-same-pre-fork-worker-model/
https://davidcaron.dev/sqlalchemy-multiple-threads-and-processes/
#sqlalchemy #threads #gunicorn #celery
https://www.yangster.ca/post/not-the-same-pre-fork-worker-model/
https://davidcaron.dev/sqlalchemy-multiple-threads-and-processes/
#sqlalchemy #threads #gunicorn #celery
Yangster
Not The Same Pre-fork Worker Model
Running into bugs when forking at the wrong time