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

Workflow termination issue despite calling TerminateWorkflow()

Open balyanarm opened this issue 1 year ago • 0 comments

Describe the bug After calling await workflowHost.TerminateWorkflow(workflow.Id) the workflow does not terminate as expected. The status in the database remains as 0, and the NextExecution field is populated, indicating that the workflow is not terminated.

To Reproduce Start the workflow. Retrieve the workflow ID. Call await workflowHost.TerminateWorkflow(workflow.Id);. Check the status in the database and observe that it is still 0. Note that the NextExecution field is populated,

Expected behavior After calling await workflowHost.TerminateWorkflow(workflow.Id), the workflow should terminate successfully. The status in the database should reflect the termination =3. The NextExecution field should not be populated, indicating that there are no further executions scheduled for the terminated workflow.

Additional context Add any other context about the problem here.

balyanarm avatar May 23 '23 17:05 balyanarm