Post workflow middleware can't catch cancelled workflow
wakuflair opened this issue · 0 comments
wakuflair commented
Describe the bug
A cancelled workflow not be caught in a post workflow middleware.
To Reproduce
- Create a post workflow middleware following doc
- Start a workflow with a
CancellationToken
- Cancel the workflow with token
- The middleware is not triggered
Expected behavior
The post workflow middleware should be triggered with a "Terminated" status workflow.
Additional context
I am not sure if it is by design, if yes, how can I handle a cancelled workflow by using workflow middleware?