danielgerlag / danielgerlag/workflow-core

Workflow termination issue despite calling TerminateWorkflow()

Open
#1,170 2 comments 3 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
5.9k
Forks
1.3k
Avg merge
1d 1h
Merged PRs (30d)
5

Description

**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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.