Keeping Alive With Long-Running Sync Work in Python

from blog Jason Scheirer on the Internet on Jason Scheirer, | ↗ original
In my previous post I wanted to run a keepalive green thread on the wide while doing work to let the coordination framework (in this case just a plain old Postgres database) which workers were around and still processing work. Now, I have a long-running block of synchronous code. Herein lies the problem: synchronous code does not play nicely in...