homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rosslagerwall
Recipients pitrou, rosslagerwall
Date 2011年07月01日.05:25:22
SpamBayes Score 6.2373816e-05
Marked as misclassified No
Message-id <1309497923.23.0.957560996312.issue12456@psf.upfronthosting.co.za>
In-reply-to
Content
6d6099f7fe89 introduced a regression.
It causes the following code to hang fairly reliably for me:
"""
import concurrent.futures
import math
def is_prime(n):
 print(sqt(81)) <---- Note the type error!
def main():
 with concurrent.futures.ProcessPoolExecutor(2) as executor:
 executor.map(is_prime, [1, 2])
if __name__ == '__main__':
 main()
"""
From my limited knowledge of multiprocessing and concurrent futures, it seems that in shutdown_worker(), call_queue.put(None) hangs because the queue is full and there are no more workers consuming items in the queue (they exited early).
Increasing EXTRA_QUEUED_CALLS fixes the problem, though its probably not the correct solution.
History
Date User Action Args
2011年07月01日 05:25:23rosslagerwallsetrecipients: + rosslagerwall, pitrou
2011年07月01日 05:25:23rosslagerwallsetmessageid: <1309497923.23.0.957560996312.issue12456@psf.upfronthosting.co.za>
2011年07月01日 05:25:22rosslagerwalllinkissue12456 messages
2011年07月01日 05:25:22rosslagerwallcreate

AltStyle によって変換されたページ (->オリジナル) /