-
-
Notifications
You must be signed in to change notification settings - Fork 84
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
Dashboard does not show exception for retries #375
Comments
Thank you for the feedback! I can do the required updates if you like. Im also looking into an optimization another place in the MongoWriteOnlyTransaction anyways. Thanks! |
gottscj
added a commit
that referenced
this issue
Nov 28, 2023
I added your changes. Please let me know if it works as you expect. Thanks for the help! |
Perfect! Thank you. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have noticed an inconsistency between Hangfire.Mongo and other storages, like in-memory, and Redis (Hangfire.Pro):
When a job is retried, the encountered exception is not shown in the dashboard, when using Hangfire.Mongo.
When using any of the other storages I tested, the exceptions are shown on every retry.
When I use the ASP.NET Core sample, and make a job fail, I get this.
Any of the others do this (notice the Failed-state with exception information):
I traced the issue down to the
MongoWriteOnlyTransaction
class. It only saves the latest StateHistory item to the database, instead of all the ones that were encountered, during handling of all the configured state filters.I don't know if this behavior is the desired behavior. It might be for performance reasons. But in any case, to change it, I did the following:
MongoJobUpdates.cs
MongoWriteOnlyTransaction.cs
Now the exceptions are shown for every retry.
Should I create a PR, or is the current behavior as intended?
Thanks for your efforts.
The text was updated successfully, but these errors were encountered: