Skip to content

Commit d19feed

Browse files
authored
fix: increase retry attempts for marking unified check run conclusion (#4962)
fix: increase retry attempts for marking unified check run conclusion
1 parent 368a882 commit d19feed

1 file changed

Lines changed: 13 additions & 8 deletions

File tree

app_dart/lib/src/service/scheduler.dart

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1466,15 +1466,20 @@ $stacktrace
14661466
// We're doing a transactional update, which could fail if multiple tasks
14671467
// are running at the same time so retry a sane amount of times before
14681468
// giving up.
1469-
const r = RetryOptions(maxAttempts: 3, delayFactor: Duration(seconds: 5));
1469+
const r = RetryOptions(maxAttempts: 5, delayFactor: Duration(seconds: 5));
14701470

1471-
return r.retry(() {
1472-
return UnifiedCheckRun.markConclusion(
1473-
firestoreService: _firestore,
1474-
guardId: guardId,
1475-
state: state,
1476-
);
1477-
});
1471+
try {
1472+
return await r.retry(() {
1473+
return UnifiedCheckRun.markConclusion(
1474+
firestoreService: _firestore,
1475+
guardId: guardId,
1476+
state: state,
1477+
);
1478+
});
1479+
} on Exception catch (e, s) {
1480+
log.warn('$logCrumb: Failed to mark unified check run conclusion', e, s);
1481+
rethrow;
1482+
}
14781483
}
14791484

14801485
/// Reschedules a failed build using a [CheckRunEvent]. The CheckRunEvent is

0 commit comments

Comments
 (0)