Skip to content

Fix / Cancel early when handling commands - #370

Merged
maxekman merged 1 commit into
looplab:mainfrom
maxekman:fix-cancel-earlier
Dec 6, 2021
Merged

maxekman merged 1 commit into
looplab:mainfrom
maxekman:fix-cancel-earlier

Conversation

@maxekman

@maxekman maxekman commented Dec 6, 2021

Copy link
Copy Markdown
Member

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
Copy Markdown

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