Skip to content

Commit 474ad94

Browse files
refactor: improve comments
1 parent ba57c9d commit 474ad94

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

codersdk/deployment.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,10 @@ type PrebuildsConfig struct {
808808
// the number of failed prebuilds, which influences the backoff strategy.
809809
ReconciliationBackoffLookback serpent.Duration `json:"reconciliation_backoff_lookback" typescript:",notnull"`
810810

811-
FailureHardLimit int64 `json:"failure_hard_limit" typescript:",notnull"`
811+
// FailureHardLimit defines the maximum number of consecutive failed prebuild attempts allowed
812+
// before a preset is considered to be in a hard limit state. When a preset hits this limit,
813+
// no new prebuilds will be created until the limit is reset.
814+
FailureHardLimit int64 `json:"failure_hard_limit" typescript:"failure_hard_limit"`
812815
}
813816

814817
const (

0 commit comments

Comments
 (0)