Message413372
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? |
|
Date |
User |
Action |
Args |
2022-02-17 01:05:51 | gvanrossum | set | recipients:
+ gvanrossum, njs, jab, asvetlov, alex.gronholm, yselivanov, tinchester, iritkatriel, ajoino |
2022-02-17 01:05:51 | gvanrossum | set | messageid: <1645059951.74.0.525920522598.issue46771@roundup.psfhosted.org> |
2022-02-17 01:05:51 | gvanrossum | link | issue46771 messages |
2022-02-17 01:05:51 | gvanrossum | create | |
|