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

Skip retries for Jira errors #290

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

qixiang
Copy link
Contributor

@qixiang qixiang commented Jan 20, 2025

Due to the implementation of the allow list and block list, freshmaker is actually checking all advisories with all state changes. When freshmaker lacks permissions to access certain Jira issues, it continuously retries these checks, causing significant performance degradation.

This change removes retry attempts for Jira permission errors, as these retries would never succeed. This workaround prevents unnecessary delays in processing advisory state change events.

@qixiang qixiang force-pushed the skip-when-jira-error branch from d2883d1 to 5fffba1 Compare January 20, 2025 17:36
@qixiang qixiang changed the title Don't retry on Jira check errors Skip retries for Jira errors Jan 20, 2025
@qixiang qixiang force-pushed the skip-when-jira-error branch from 5fffba1 to 0e015f2 Compare January 20, 2025 17:55
Copy link
Contributor

@FernandesMF FernandesMF left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! I have no suggestions to the code.

Due to the implementation of the allow list and block list, freshmaker
is actually checking all advisories with all state changes. When
freshmaker lacks permissions to access certain Jira issues, it
continuously retries these checks, causing significant performance
degradation.

This change removes retry attempts for Jira permission errors, as these
retries would never succeed. This workaround prevents unnecessary delays
in processing advisory state change events.
@qixiang qixiang force-pushed the skip-when-jira-error branch from 0e015f2 to a97fa97 Compare January 21, 2025 05:52
@qixiang qixiang merged commit b143271 into redhat-exd-rebuilds:main Jan 21, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants