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 bquinlan
Recipients bquinlan, jenisys
Date 2011-03-31.04:31:56
SpamBayes Score 9.332098e-06
Marked as misclassified No
Message-id <1301545917.32.0.830276552218.issue11724@psf.upfronthosting.co.za>
In-reply-to
Content
This is the expected behavior.

Future.cancel() returns a bool indicating if the future was cancelled or not. If it returns False then there is no way to stop it.

The behavior that you are seeing for shutdown is documented as:
"""
shutdown(wait=True)
...

If wait is True then this method will not return until all the pending futures are done executing and the resources associated with the executor have been freed. If wait is False then this method will return immediately and the resources associated with the executor will be freed when all pending futures are done executing. Regardless of the value of wait, the entire Python program will not exit until all pending futures are done executing.
"""
History
Date User Action Args
2011-03-31 04:31:57bquinlansetrecipients: + bquinlan, jenisys
2011-03-31 04:31:57bquinlansetmessageid: <1301545917.32.0.830276552218.issue11724@psf.upfronthosting.co.za>
2011-03-31 04:31:56bquinlanlinkissue11724 messages
2011-03-31 04:31:56bquinlancreate