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")