Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2d4d2cf

Browse files
refactor: improve comment
1 parent1c1777d commit2d4d2cf

File tree

3 files changed

+17
-13
lines changed

3 files changed

+17
-13
lines changed

‎coderd/database/querier.go

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎coderd/database/queries.sql.go

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎coderd/database/queries/prebuilds.sql

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -127,18 +127,10 @@ GROUP BY tsb.template_version_id, tsb.preset_id, fc.num_failed;
127127

128128
-- GetPresetsAtFailureLimit groups workspace builds by preset ID.
129129
-- Each preset is associated with exactly one template version ID.
130-
-- For each preset, the query checks last hard_limit builds.
131-
-- If all of them failed,it'sconsidereda permanent error - stop retrying.
132-
--Queryreturns a list of preset IDsfor which hard limit is hit.
130+
-- For each preset, the query checksthelast hard_limit builds.
131+
-- If all of them failed,the preset isconsideredto have hit the hard failure limit.
132+
--The queryreturns a list of preset IDsthat have reached this failure threshold.
133133
-- Only active template versions with configured presets are considered.
134-
-- TODO: remove?
135-
-- We also return the number of failed workspace builds that occurred during the lookback period.
136-
--
137-
-- NOTE:
138-
-- - To **decide whether to back off**, we look at up to the N most recent builds (within the defined lookback period).
139-
-- - To **calculate the number of failed builds**, we consider all builds within the defined lookback period.
140-
--
141-
-- The number of failed builds is used downstream to determine the backoff duration.
142134
-- name: GetPresetsAtFailureLimit :many
143135
WITH filtered_buildsAS (
144136
-- Only select builds which are for prebuild creations

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp