if we are multithreading, give some time between the requests

This commit is contained in:
Karma Riuk
2025-05-21 09:33:58 +02:00
parent b598e97bc6
commit 5734ca5c8d

View File

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