It's been a while since i wrote something in English, mostly because there's nothing really interesting,until now.Occasionally, when facing a long running task in Python, I would choose either a distrubuted tasks queue system, or for the convenience, just thesubprocessmodule. It's built-in and well designed for grabbing outputs of a child process running for a short period of time.But what if the child-process takes a really, really long time? In my case it's an expensive query, or some CPU/GPU intensive task, which needs to be launched from a running Web framework, like FastAPI.Popen() fire a
...
继续阅读
(59)