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