Skip to content

Commit 4dfbcdf

Browse files
authored
Increase pub_worker's retry delay. (#8924)
1 parent 1793a03 commit 4dfbcdf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pkg/pub_worker/lib/src/analyze.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ const _panaTimeout = Duration(minutes: 50);
3535
List<int> encodeJson(Object json) => JsonUtf8Encoder().convert(json);
3636

3737
/// Retry requests with a longer delay between them.
38-
final _retryOptions = RetryOptions(delayFactor: Duration(seconds: 5));
38+
final _retryOptions = RetryOptions(
39+
maxAttempts: 4,
40+
delayFactor: Duration(seconds: 10),
41+
maxDelay: Duration(seconds: 90),
42+
);
3943

4044
/// Retry request if it fails because of an [IOException] or status is 5xx.
4145
bool _retryIf(Exception e) =>

0 commit comments

Comments
 (0)