What can occur if one or more workers call ‘Synchronous function’ simultaneously ? Maybe one or more workers become blocked for a while ? Answer Short answer: If you call a synchronous (blocking) function from within an async coroutine, all the tasks that are concurrently running in the loop will stall until this function returns. Use loop.run_in_executor(…) to asynchronous run
Tag: call
Calling a Tornado handler in another handler
I want to split a Tornado handler in two handlers. In the first handler, I want send a command to a sensor. In the second handler, I want to wait for a response from the sensor. Is this possible? Or I can’t call an handler from another? If it’s possible, how I can call this second handler? Thank you very