Skip to content

Commit 1d0a25b

Browse files
committed
More comment on the goals of the delay.
1 parent bc25be6 commit 1d0a25b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/lib/search/backend.dart

+3-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ class SearchBackend {
117117
} catch (e, st) {
118118
_logger.pubNoticeShout(
119119
'snapshot-building', 'Snapshot update failed.', e, st);
120-
// Force waiting at least an hour before we rethrow the exception
120+
// Force waiting at least an hour before we rethrow the exception,
121+
// otherwise we could get into a reboot loop that doesn't get much
122+
// real work done on the other tasks.
121123
final elapsed = clock.now().difference(started);
122124
if (elapsed < Duration(hours: 1)) {
123125
_logger.warning('Waiting before rethrowing exception.', e, st);

0 commit comments

Comments
 (0)