Skip to content

Commit

Permalink
Adjust backoff timing to 60, 90, 135 depending on number of attempts
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-miller committed Nov 12, 2024
1 parent 0f100e6 commit ab48896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brozzler/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ def brozzle_site(self, browser, site):
"unexpected exception site=%r page=%r", site, page, exc_info=True
)
if page:
retry_delay = min(60, 60 * (1.5**page.failed_attempts))
retry_delay = min(135, 60 * (1.5**page.failed_attempts))
page.retry_after = doublethink.utcnow() + datetime.timedelta(
seconds=retry_delay
)
Expand Down

0 comments on commit ab48896

Please sign in to comment.