Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post workflow middleware can't catch cancelled workflow #1230

Open
wakuflair opened this issue Jan 24, 2024 · 0 comments
Open

Post workflow middleware can't catch cancelled workflow #1230

wakuflair opened this issue Jan 24, 2024 · 0 comments

Comments

@wakuflair
Copy link

wakuflair commented Jan 24, 2024

Describe the bug
A cancelled workflow not be caught in a post workflow middleware.

To Reproduce

  1. Create a post workflow middleware following doc
  2. Start a workflow with a CancellationToken
  3. Cancel the workflow with token
  4. 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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant