9 ms·
I've had plenty of success using run_in_executor in production. You basically just use the decorator, and it mostly just works.
by zo1 2y ago
I've had plenty of success using run_in_executor in production. You basically just use the decorator, and it mostly just works.
- sandeep1998 2y agoWhich decorator?
- zo1 2y agoI went back to look at some of the old code as my memory was hazy. It was tornado's implementation of the run_on_executor method that we used, which is used as a decorator. https://www.tornadoweb.org/en/stable/concurrent.html#tornado.concurrent.run_on_executor https://www.tornadoweb.org/en/stable/concurrent.html#tornado...