Repository navigation
fix how resources with check_every: never are handled when scheduling builds - #9598
Merged
Merged
Conversation
Removed the If-check in check_delegate. It was a little redundant to have since we check this in Lidar already and it would be overridden if manually checked. It wound up overriding the intention from the component that sent the check in the first place. This allows our call that creates checks in the Scheduler to go through and actually run the check. Another approach I looked at was trying to see if we could easily look up if a resource has `check_every: never` set. Sadly that information is not normalized in the database, it's sitting in a text column that stores json, making it a tad too expensive for me to want to query. Signed-off-by: Taylor Silva <[email protected]>
taylorsilva
force-pushed
the
9592-fix-check-every-never-scheduling
branch
from
June 11, 2026 00:34
82f8513 to
1a76a02
Compare
This was referenced Jun 11, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes proposed by this PR
closes #9590 #9592
Removed the If-check in check_delegate. It was a little redundant to
have since we check this in Lidar already and it would be overridden
if manually checked. It wound up overriding the intention from the
component that sent the check in the first place. This allows our
call that creates checks in the Scheduler to go through and actually
run the check.
In lidar, we'll override Never == true if the resource has never beenRemoved this change because I realized it would be a breaking change in behaviour. I confirmed that resource checking behaved this way in previous versions, therefore I don't want to change that unnecessarily when users may be relying on it when setting their pipelines. I have updated the docs to reflect this reality.previously checked. We do this by checking if the resource has a
scope ID. This helps ensure pipelines that are initially set check
the resource at least once and therefore allow any automatically
triggered jobs to run.
Another approach I looked at was trying to see if we could easily look up if a resource has
check_every: neverset. Sadly that information is not normalized in the database, it's sitting in a text column that stores json, making it a tad too expensive for me to want to query. Why not a jsonb column? It's probably a really old table and it's not worth the migration pain.