diff --git a/src/github.py b/src/github.py index 7444974..54d51d5 100644 --- a/src/github.py +++ b/src/github.py @@ -1,4 +1,5 @@ from datetime import datetime +from time import sleep from src import requests @@ -388,6 +389,7 @@ def fetch_pull_requests(self, after_cursor: str = None): except Exception as e: print(e, data) print(f"Could not get GraphQL result, retrying with count: {count}") + sleep(60/count) if "data" not in data: raise RuntimeError("Could not get pull request info from GraphQL after three tries")