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

add infos on failed jobs log #2455

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lucas-clementei1
Copy link

@lucas-clementei1 lucas-clementei1 commented Oct 9, 2024

Hello :)

I'd like to add some info about the Job name in the failed jobs logs in order to create some alerting :
Something like this ⬇️

From :

                         _logger.ErrorException(
                        $"Failed to process the job '{context.BackgroundJob.Id}': an exception occurred.",
                        failedState.Exception);

To :

                        _logger.ErrorException(
                        $"Failed to process the job '{context.BackgroundJob.Job?.Type.Name}' with id '{context.BackgroundJob.Id}': an exception occurred.",
                        failedState.Exception);

Is it possible ? I have a branch already ready in local if you want, but I can't create a PR (I'm pretty new, feel free to tell me if it's not the correct way of asking :) )

Thank you in advance

Closes #2454

@lucas-clementei1 lucas-clementei1 changed the title add infos in failed jobs logs #2454 add infos in failed jobs log Oct 9, 2024
@lucas-clementei1 lucas-clementei1 changed the title add infos in failed jobs log add infos on failed jobs log Oct 9, 2024
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.

Add info of job name in the failed jobs logs
1 participant