From 5734ca5c8da0b730d25a7ea7a861cb8388bd28b1 Mon Sep 17 00:00:00 2001 From: Karma Riuk Date: Wed, 21 May 2025 09:33:58 +0200 Subject: [PATCH] if we are multithreading, give some time between the requests --- pull_requests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pull_requests.py b/pull_requests.py index 96ac908..2fbeaab 100644 --- a/pull_requests.py +++ b/pull_requests.py @@ -677,7 +677,8 @@ if __name__ == "__main__": print( "[WARNING] The enviorment variable GITHUB_AUTH_TOKEN_CRAB was not set. This isn't critical, but it will significantly limit the number of GitHub requests this script can make." ) - g = Github(github_api_token, seconds_between_requests=0) + + g = Github(github_api_token, seconds_between_requests=0 if args.max_workers is None else 0.15) docker_client = docker.from_env() move_logger_to_file("github", "github_api.log")