From cb217f1e69db61d7db36facbb509f7b79c161568 Mon Sep 17 00:00:00 2001 From: Istvan Soos Date: Tue, 26 Aug 2025 14:16:37 +0200 Subject: [PATCH] Increase pub_worker's retry delay. --- pkg/pub_worker/lib/src/analyze.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/pub_worker/lib/src/analyze.dart b/pkg/pub_worker/lib/src/analyze.dart index abe4f0462f..8248d4d5e9 100644 --- a/pkg/pub_worker/lib/src/analyze.dart +++ b/pkg/pub_worker/lib/src/analyze.dart @@ -35,7 +35,11 @@ const _panaTimeout = Duration(minutes: 50); List encodeJson(Object json) => JsonUtf8Encoder().convert(json); /// Retry requests with a longer delay between them. -final _retryOptions = RetryOptions(delayFactor: Duration(seconds: 5)); +final _retryOptions = RetryOptions( + maxAttempts: 4, + delayFactor: Duration(seconds: 10), + maxDelay: Duration(seconds: 90), +); /// Retry request if it fails because of an [IOException] or status is 5xx. bool _retryIf(Exception e) =>