Theseus icon indicating copy to clipboard operation
Theseus copied to clipboard

Implement stack unwinding for cancelled tasks

Open tsoutsman opened this issue 2 years ago • 2 comments

Depends on #766.

Closes #770.

Signed-off-by: Klim Tsoutsman [email protected]

tsoutsman avatar Dec 25 '22 12:12 tsoutsman

I've manually tested all three scenarios in test_task_cancel by rerunning test_task_cancel and checking log outputs.

Not sure about the naming of start_remote_unwinding.

tsoutsman avatar Dec 26 '22 04:12 tsoutsman

Also, as discussed before, this won't be able to unwind all tasks. Should cancel_task spawn another task that, after some timeout period (e.g. 5 seconds), checks if the original task has been unwound and, if not, aborts it?

tsoutsman avatar Dec 26 '22 09:12 tsoutsman