Message217258
Due to some bad math on my side, I passed max_workers=0 to concurrent.futures.ThreadPoolExecutor. This didn't fail properly, but hanged. The same behaviour occurs in ProcessPoolExecutor, but this time it fails internally with something like this:
Exception in thread Thread-1:
Traceback (most recent call last):
File "C:\Python34\lib\threading.py", line 921, in _bootstrap_inner
self.run()
File "C:\Python34\lib\threading.py", line 869, in run
self._target(*self._args, **self._kwargs)
File "C:\Python34\lib\concurrent\futures\process.py", line 225, in _queue_management_worker
assert sentinels
AssertionError
The attached patch checks that *max_workers* is <= 0 and raises ValueError if so. |
|
Date |
User |
Action |
Args |
2014-04-27 11:39:29 | Claudiu.Popa | set | recipients:
+ Claudiu.Popa, bquinlan |
2014-04-27 11:39:29 | Claudiu.Popa | set | messageid: <1398598769.27.0.217084820664.issue21362@psf.upfronthosting.co.za> |
2014-04-27 11:39:29 | Claudiu.Popa | link | issue21362 messages |
2014-04-27 11:39:28 | Claudiu.Popa | create | |
|