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
How to handle command errors #3
Comments
+1 |
Hi, |
Hi, how about changing
to
that way we'd have full information about whether command handling was successful or not, |
Using |
@moltar I am looking exactly for the behaviour you mention: jobs managed by some queue system, such that in case the handler fails either caused by a (transient) exception, or the instance is shutdown, the job is retried automatically. Could you point me towards any resources/examples (anything really) on how to configure NestJS+Sagas in a manner to achieve exactly that? |
How command handlers should implement exception/error handling? Now if execute method throws an error I get node error "UnhandledPromiseRejectionWarning: Unhandled promise rejection".
Should implement catch all exceptions and use resolve function to return something like CommandResult object which have information was command success or not?
The text was updated successfully, but these errors were encountered: