Skip to content

Commit a138910

Browse files
committed
Make the delays longer to see if this helps
1 parent 1f4b7b3 commit a138910

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/import_backends.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def submit(self, ticket: Ticket) -> int:
223223
# primary rate limits which can be queried via the API. Manual testing
224224
# indicates that ~2s isn't always sufficient, so err on the side of a
225225
# larger gap for better reliability.
226-
time.sleep(5)
226+
time.sleep(10)
227227

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

234234
@retrying.retry(
235235
retry_on_exception=retry_on_exception,
236-
wait_fixed=20_000,
236+
wait_fixed=60_000,
237237
)
238238
def create_issue() -> github.Issue.Issue:
239239
RATE_LIMIT_MESSAGE = "exceeded a secondary rate limit and have been temporarily blocked" # noqa:E501

0 commit comments

Comments
 (0)