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 gvanrossum
Recipients ajoino, alex.gronholm, asvetlov, gvanrossum, iritkatriel, jab, njs, tinchester, yselivanov
Date 2022-02-17.01:05:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1645059951.74.0.525920522598.issue46771@roundup.psfhosted.org>
In-reply-to
Content
Hm, I see. So the problem is that in the interval between move_on's calls to t.cancel() and t.uncancel(), if the web server calls t.cancel() that will just return False. So the web server would have to implement some other mechanism for cancelling operations.

That's indeed unfortunate. Maybe we  should just roll back that aspect of the TaskGroup PR -- in particular, remove these two lines:

        if self._cancel_requested:
            return False

from Task.cancel(). These lines don't matter for TaskGroup (it works without them), and they weren't there before yesterday, so the fallout would be very localized.

@asvetlov What do you think?
History
Date User Action Args
2022-02-17 01:05:51gvanrossumsetrecipients: + gvanrossum, njs, jab, asvetlov, alex.gronholm, yselivanov, tinchester, iritkatriel, ajoino
2022-02-17 01:05:51gvanrossumsetmessageid: <1645059951.74.0.525920522598.issue46771@roundup.psfhosted.org>
2022-02-17 01:05:51gvanrossumlinkissue46771 messages
2022-02-17 01:05:51gvanrossumcreate