cadence-web icon indicating copy to clipboard operation
cadence-web copied to clipboard

A button to cancel workflow along with terminate

Open longquanzheng opened this issue 4 years ago • 1 comments

Screen Shot 2021-05-05 at 10 27 43 PM Right now only `terminate` is supported. In some use cases cancel is needed.

As a workaround, users have to use CLI to cancel their workflows.

longquanzheng avatar May 06 '21 05:05 longquanzheng

Any plans to address this? Seems like a logical (?) and simple feature to implement. Termination provides no means for the code to properly clean up. As an example, I discovered that goroutines would leak for terminated workflows awaiting child workflows with ChildWorkflowFuture.Get() so Cancel is probably preferable in most circumstances and Terminate would only be a last resort. Much like kill -INT might be tried prior to a kill -KILL.

petergardfjall avatar Aug 10 '23 12:08 petergardfjall