You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
After cancelling a workflow on dashboard, There is a warning 'Thread 6330920960 with run id 3be4c09f-7ca1-482d-aeee-30fd50f9eb1c is still running after cancellation'. The code still continue to run until it finishes.
hey @kahkeong - sorry for just circling back to this. The reason for this is that you're doing blocking work (time.sleep) and are in a synchronous function (def step1). We added an option in this PR called HATCHET_CLIENT_ENABLE_FORCE_KILL_SYNC_THREADS which you can set to True if you want to enable force-killing the function that's hanging. Importantly, this is somewhat dangerous, so just be aware that if you're e.g. halfway through a long database write or something and the thread is killed, that write will not finish.
Hopefully this is helpful, sorry for the delay here!
Description:
After cancelling a workflow on dashboard, There is a warning 'Thread 6330920960 with run id 3be4c09f-7ca1-482d-aeee-30fd50f9eb1c is still running after cancellation'. The code still continue to run until it finishes.
Logs:
Expected behaviour:
It should stop logging new numbers after the workflow is cancelled.
Worker code for reproduction:
Configuration Details:
The text was updated successfully, but these errors were encountered: