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

Fix / Cancel early when handling commands #370

Merged
merged 1 commit into from
Dec 6, 2021

Conversation

maxekman
Copy link
Member

@maxekman maxekman commented Dec 6, 2021

Description

Sometimes when a saga tries to run a command during session shutdown it results in an unclear error, often during loading of events from the DB. By detecting a cancelled context earlier the error will for example say "could not run saga: canceled".

Affected Components

  • Command handler, bus and aggregate

Related Issues

Solution and Design

Steps to test and verify

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) to 68.77% when pulling 0f102e7 on maxekman:fix-cancel-earlier into fb59d5d on looplab:main.

@maxekman maxekman merged commit afb93b9 into looplab:main Dec 6, 2021
@maxekman maxekman deleted the fix-cancel-earlier branch December 6, 2021 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants