Skip to content

Commit

Permalink
Make the delays longer to see if this helps
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterJCLaw committed Jan 23, 2022
1 parent 5a2c8d6 commit 700e7ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/import_backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def submit(self, ticket: Ticket) -> int:
# primary rate limits which can be queried via the API. Manual testing
# indicates that ~2s isn't always sufficient, so err on the side of a
# larger gap for better reliability.
time.sleep(5)
time.sleep(10)

# We also want to wait and retry when GitHub then additionally rate
# limit us anyway...
Expand All @@ -233,7 +233,7 @@ def retry_on_exception(exception: Exception) -> bool:

@retrying.retry(
retry_on_exception=retry_on_exception,
wait_fixed=20_000,
wait_fixed=60_000,
)
def create_issue() -> github.Issue.Issue:
RATE_LIMIT_MESSAGE = "exceeded a secondary rate limit and have been temporarily blocked" # noqa:E501
Expand Down

0 comments on commit 700e7ce

Please sign in to comment.