Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: limit prebuild failure cost #17697

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

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

Conversation

evgeniy-scherbina
Copy link
Contributor

@evgeniy-scherbina evgeniy-scherbina commented May 6, 2025

Relates to #17432

Notes:

  • GetPresetsAtFailureLimit SQL query is added, which is similar to GetPresetsBackoff, they use same CTEs: filtered_builds, time_sorted_builds, but they are still different.

  • Query is executed on every loop iteration. We can consider marking specific preset as permanently failed as an optimization to avoid executing query on every loop iteration. But I decided don't do it for now.

  • By default FailureHardLimit is set to 3.

  • FailureHardLimit is configurable. Setting it to zero - means that hard limit is disabled.

@evgeniy-scherbina evgeniy-scherbina force-pushed the 17432-limit-prebuild-failure-cost branch from 1e9c551 to fcb3e5d Compare May 9, 2025 21:40
@evgeniy-scherbina evgeniy-scherbina marked this pull request as ready for review May 9, 2025 21:40
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.

1 participant