On 04/10/2010 07:00 AM, Andreas Jung wrote:
> is it save to use the 'multiprocessing' module inside a BFG app?
> In particular I need to maintain a multiprocessing.Pool() instance...
> this is working at the first glance however the BFG app won't shutdown
> in a clean way when stopped through a keyboard interrupt. The apps
> hangs usually inside the following code:
In general, it is not safe to use multiprocessing except at the top
level of any application. I would set up the multiple processes before
creating the WSGI stack or importing anything from any web framework.
Repoze-dev mailing list