mirror of
https://github.com/karma-riuk/crab.git
synced 2025-07-04 21:28:12 +02:00
if we are multithreading, give some time between the requests
This commit is contained in:
@ -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")
|
||||
|
Reference in New Issue
Block a user