elsa-core icon indicating copy to clipboard operation
elsa-core copied to clipboard

Cancel running workflows

Open sfmskywalker opened this issue 3 years ago • 3 comments

Discussed in https://github.com/elsa-workflows/elsa-core/discussions/3053

Originally posted by gor8808 May 22, 2022 I have this workflow

While(true) |(iterate)| Writeline()

When I cancel this workflow (after execution) using this endpoint -- ​/v1​/workflow-instances​/{id}​/cancel it still keeps executing(printing to console)

Can you specify what means canceling the instance and in which cases it cancels the instance? BTW I can't find any docs regarding canceling endpoint

See also: #3163

sfmskywalker avatar May 31 '22 11:05 sfmskywalker

We are running into this often, as we need to cancel running workflows. We are having to forcibly kill the pod instance in order to kill the workflow. Is there also a way to know what worker instance(host) the workflow is currently running on?

johnwc avatar Jul 11 '22 17:07 johnwc

Will the same endpoint be used or do you plan to create a new one?

payoff avatar Oct 16 '22 14:10 payoff

@payoff not sure who you are asking that towards, nor what you are referring to. Why would there be a new cancel endpoint built into Elsa?

@sfmskywalker after using Elsa for some time. We're also finding that a workflow may say faulted in the dashboard, but if we view the node's log; an activity is still logging to console.

johnwc avatar Oct 16 '22 21:10 johnwc