Skip to content

Commit

Permalink
fix(scraper): actually sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
2e0byo committed Jan 29, 2022
1 parent e7eb12b commit 2835717
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions yadc/scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,7 @@ def __call__(self):
period = self.time_to_next_event(elapsed=end - start)
period = max(period - 5, 0)
self._logger.debug(f"Sleeping for {period}s.")
spinner_sleep(period)
self._logger.debug(
f"Sleeping for ~5s to introduce some randomness."
)
Expand Down

0 comments on commit 2835717

Please sign in to comment.