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

Recurring exceptions in Hangfire jobs result in lots of useless breadcrumbs #3632

Open
jamescrosswell opened this issue Sep 26, 2024 · 0 comments

Comments

@jamescrosswell
Copy link
Collaborator

When you have a hangfire job that fails repeatedly:

  • You get a useful error report when the exception is first reported
  • The error is then reported again, and again... ad infinitum
    • These subsequent errors become less and less useful because the breadcrumbs are just filled with this one exception

The behaviour to create a breadcrumb for any exceptions is something that was added in version 4.11.0.

In this particular case, since it's a recurring exception, all of those breadcrumbs aren't that useful... Potentially before adding a breadcrumb for an exception, we could check to see if a breadcrumb for the exact same exception already exists on the scope and, if so, skip it. As long as the stack trace was always the same, this might be possible.

Originally posted by @jamescrosswell in #3626

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

No branches or pull requests

1 participant