tasks are not cancelled after ctrl-c #58
Comments
this seems to address the problem for me, but I have no idea how robust it is to various cases:
|
This is what the standard Solving this would involve keeping track of all tasks associated with a certain run, which looks difficult to me right now. Btw, this issue does not seem related to #57 as far as I can tell. |
Thanks for looking into this. Some thoughts:
If you're willing to alter your api to That said, perhaps it's looking pretty hacky to support these limited use-cases? |
If it's okay to cancel all tasks, then why not implement the |
One thought is I would think that I'm not the only person who wants to use async from jupyter with ability to interrupt. But yea, if |
Any updates? |
This issue is fixed by canceling the task that is given to |
This seems related enough to #57 to be a duplicate, but it also seems sufficiently different (i.e., the
CancelledError
is not raised) to merit its own issue.What I'd like is for unfinished tasked to be cancelled when, e.g., a ctrl-c happens.
Here's a minimal example:
results in
(the
CancelledError
is unexpectedly not raised), vs the desired:I'm using the latest
nest_asyncio
installed from source.The text was updated successfully, but these errors were encountered: