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 jenisys
Recipients jenisys
Date 2011年03月30日.21:00:08
SpamBayes Score 1.8289466e-05
Marked as misclassified No
Message-id <1301518809.28.0.175951319539.issue11724@psf.upfronthosting.co.za>
In-reply-to
Content
A long running task that is submitted to an ThreadPoolExecutor runs to completion even when the future times out or is canceled.
Even executor.shutdown(wait=False) will not help.
HOW TO REPEAT:
Provide a function which sleeps for 10 seconds.
Submit it to a ThreadPoolExecutor.
Wait on the future for the result for 2 seconds.
OBSERVED BEHAVIOUR:
1. future times out after approx. 2 seconds
2. Process shutdown is delayed by an additional 8 seconds,
 meaning it waits until submitted task/function has completed.
History
Date User Action Args
2011年03月30日 21:00:09jenisyssetrecipients: + jenisys
2011年03月30日 21:00:09jenisyssetmessageid: <1301518809.28.0.175951319539.issue11724@psf.upfronthosting.co.za>
2011年03月30日 21:00:08jenisyslinkissue11724 messages
2011年03月30日 21:00:08jenisyscreate

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