task cancelation problem #1773
haidi-ustc
started this conversation in
General
Replies: 1 comment 1 reply
-
|
Hey @haidi-ustc so sorry to have missed your discussion. So, one thing to note here is that the Or rather I should say that if a task has already started then there isn't a way to make it stop (i.e. cancelling it) in case of I am wondering though, is there a reason why you're not using the default executor to run that task? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, covalent team,
I'm encountering some issues with task cancellation, and I was wondering if you could help me resolve them. Below is my code. I execute the do_something task, I try to simulate the task or computation output using Python's sleep and subprocess.run.
The current script works fine when I execute
ct.cancel(disp_id), but if I remove this line from the script and try to cancel the tasks from a new command line terminal usingct.cancel(disp_id), the tasks cannot be cancelled, especially the subprocess.run task continues running indefinitely.Beta Was this translation helpful? Give feedback.
All reactions