mirror of https://github.com/google/oss-fuzz.git
Update update_build_status.py
This commit is contained in:
parent
5fcb499c68
commit
3680920a30
|
@ -18,6 +18,7 @@ import base64
|
|||
import concurrent.futures
|
||||
import json
|
||||
import sys
|
||||
import time
|
||||
|
||||
import google.auth
|
||||
from googleapiclient.discovery import build
|
||||
|
@ -173,9 +174,10 @@ def update_build_status(build_tag, status_filename):
|
|||
project = get_build_history(project_build.build_ids)
|
||||
project['name'] = project_build.project
|
||||
print('Processing project', project['name'])
|
||||
time.sleep(1) # Avoid rate limits.
|
||||
return project
|
||||
|
||||
with concurrent.futures.ThreadPoolExecutor(max_workers=8) as executor:
|
||||
with concurrent.futures.ThreadPoolExecutor(max_workers=4) as executor:
|
||||
futures = []
|
||||
for project_build in BuildsHistory.query(
|
||||
BuildsHistory.build_tag == build_tag).order('project'):
|
||||
|
|
Loading…
Reference in New Issue