Async Python : it’s easy to do it wrong

Victor Fleurant
Analytics Vidhya
Published in
4 min readSep 17, 2020

--

Photo by Emily Morter on Unsplash

It’s easy to write asynchronous Python code that does not behave like you think it would. I recently faced a situation where a Sanic web application was crashing/restarting in Kubernetes very often, but without any trace.

Why was it crashing/restarting without any logs? I was clueless. The only possible cause that came to my mind was the readiness/liveness probe that I configured on that…

--

--