Skip to content

Commit

Permalink
Merge pull request #162 from codecov/scott/archive-field-timeout
Browse files Browse the repository at this point in the history
Decrease archive field read timeout
  • Loading branch information
scott-codecov committed Oct 27, 2023
2 parents 908dc15 + cc92a59 commit 55ec0a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions database/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def __init__(
rehydrate_fn: Callable[[object, object], Any] = lambda self, x: x,
json_encoder=ReportEncoder,
default_value_class=lambda: None,
read_timeout=60,
read_timeout=5,
):
self.default_value_class = default_value_class
self.rehydrate_fn = rehydrate_fn
Expand Down Expand Up @@ -129,7 +129,7 @@ def _get_value_from_archive(self, obj):
error = True
# sleep a little but so we're not hammering the archive service
# in a tight loop
time.sleep(self.read_timeout / 20)
time.sleep(self.read_timeout / 10)

else:
log.debug(
Expand Down

0 comments on commit 55ec0a7

Please sign in to comment.