Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Your trouble seems to involve not understanding how to set up signal handlers, which ProcessPoolExecutor handles for you and exposes via a BrokenProcessPool exception.


> Derived from BrokenExecutor (formerly RuntimeError), this exception class is raised when one of the workers of a ProcessPoolExecutor has terminated in a non-clean fashion (for example, if it was killed from the outside).

What if it hangs?


That isn’t the scenario originally described, but there is a timeout parameter in future.result().




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: