File tree 1 file changed +12
-1
lines changed 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -811,7 +811,7 @@ type PrebuildsConfig struct {
811
811
// FailureHardLimit defines the maximum number of consecutive failed prebuild attempts allowed
812
812
// before a preset is considered to be in a hard limit state. When a preset hits this limit,
813
813
// no new prebuilds will be created until the limit is reset.
814
- FailureHardLimit int64 `json:"failure_hard_limit" typescript:"failure_hard_limit"`
814
+ FailureHardLimit serpent. Int64 `json:"failure_hard_limit" typescript:"failure_hard_limit"`
815
815
}
816
816
817
817
const (
@@ -3091,6 +3091,17 @@ Write out the current server config as YAML to stdout.`,
3091
3091
Annotations : serpent.Annotations {}.Mark (annotationFormatDuration , "true" ),
3092
3092
Hidden : true ,
3093
3093
},
3094
+ {
3095
+ Name : "Failure Hard Limit" ,
3096
+ Description : "Maximum number of consecutive failed prebuilds before a preset hits the hard limit." ,
3097
+ Flag : "workspace-prebuilds-failure-hard-limit" ,
3098
+ Env : "CODER_WORKSPACE_PREBUILDS_FAILURE_HARD_LIMIT" ,
3099
+ Value : & c .Prebuilds .FailureHardLimit ,
3100
+ Default : "3" ,
3101
+ Group : & deploymentGroupPrebuilds ,
3102
+ YAML : "failure_hard_limit" ,
3103
+ Hidden : ExperimentsSafe .Enabled (ExperimentWorkspacePrebuilds ), // Hide setting while this feature is experimental.
3104
+ },
3094
3105
}
3095
3106
3096
3107
return opts
You can’t perform that action at this time.
0 commit comments