Skip to content

Don't check build count on every submission - #3922

Merged
williamjallen merged 1 commit into
Kitware:masterfrom
williamjallen:build-count-check-frequency
Aug 5, 2026
Merged

Don't check build count on every submission#3922
williamjallen merged 1 commit into
Kitware:masterfrom
williamjallen:build-count-check-frequency

Conversation

@williamjallen

Copy link
Copy Markdown
Collaborator

CDash currently queries the exact number of builds in a project on every submission. While the query uses a reasonably efficient index scan, it still adds up to substantial database load during peak hours when many submissions are being received around the same time. This PR adds a caching mechanism to skip the check if it's been less than 10 minutes since the previous check. This approach means that the number of builds may briefly exceed the threshold, which seems like an acceptable tradeoff.

CDash currently queries the exact number of builds in a project on every submission.  While the query uses a reasonably efficient index scan, it still adds up to substantial database load during peak hours when many submissions are being received around the same time.  This PR adds a caching mechanism to skip the check if it's been less than 10 minutes since the previous check.  This approach means that the number of builds may briefly exceed the threshold, which seems like an acceptable tradeoff.
@williamjallen
williamjallen added this pull request to the merge queue Aug 5, 2026
Merged via the queue into Kitware:master with commit 4972195 Aug 5, 2026
7 checks passed
@williamjallen
williamjallen deleted the build-count-check-frequency branch August 5, 2026 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants