MCPcopy Create free account
hub / github.com/compozy/agh / normalizeTaskMaxAttemptsOrDefault

Function normalizeTaskMaxAttemptsOrDefault

internal/task/validate.go:1289–1294  ·  view source on GitHub ↗
(maxAttempts int)

Source from the content-addressed store, hash-verified

1287}
1288
1289func normalizeTaskMaxAttemptsOrDefault(maxAttempts int) int {
1290 if maxAttempts == 0 {
1291 return DefaultTaskMaxAttempts
1292 }
1293 return maxAttempts
1294}
1295
1296func validateTaskMaxAttempts(maxAttempts int, path string, allowZeroDefault bool) error {
1297 if allowZeroDefault && maxAttempts == 0 {

Callers 4

RecordRunReviewMethod · 0.85
ReserveQueuedRunMethod · 0.85
createTaskMaxAttemptsFunction · 0.85
taskAttemptsExhaustedFunction · 0.85

Calls

no outgoing calls

Tested by 2

RecordRunReviewMethod · 0.68
ReserveQueuedRunMethod · 0.68