[Web-SIG] PEP 444 feature request - Futures executor

Alice Bevan–McGregor alice at gothcandy.com
Sat Jan 8 08:07:56 CET 2011


On 2011-01-07 16:39:46 -0800, Alex Grönholm said:
> I believe allowing wsgi.executor to be either a process pool or a 
> thread pool is a recipe for disaster. I'm really not sure where to go 
> from here.

Two solutions:

:: Don't pass an executor to the job such that it can not schedule its 
own futures.

:: Mandate a thread pool, not process pool, to avoid deadlocking.

	- Alice.




More information about the Web-SIG mailing list