danielgerlag / danielgerlag/workflow-core
Workflow termination issue despite calling TerminateWorkflow()
- 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.