Skip to content

Commit

Permalink
Revert rate limits in update_build_status.
Browse files Browse the repository at this point in the history
  • Loading branch information
inferno-chromium authored Jun 29, 2021
1 parent 1c54b32 commit 0370821
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions infra/build/functions/update_build_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
BADGE_DIR = 'badge_images'
BADGE_IMAGE_TYPES = {'svg': 'image/svg+xml', 'png': 'image/png'}
DESTINATION_BADGE_DIR = 'badges'
MAX_BUILD_LOGS = 3
MAX_BUILD_LOGS = 7

STATUS_BUCKET = 'oss-fuzz-build-logs'

Expand Down Expand Up @@ -174,10 +174,9 @@ def process_project(project_build):
project = get_build_history(project_build.build_ids)
project['name'] = project_build.project
print('Processing project', project['name'])
time.sleep(2) # Avoid rate limits.
return project

with concurrent.futures.ThreadPoolExecutor(max_workers=5) as executor:
with concurrent.futures.ThreadPoolExecutor(max_workers=8) as executor:
futures = []
for project_build in BuildsHistory.query(
BuildsHistory.build_tag == build_tag).order('project'):
Expand Down

0 comments on commit 0370821

Please sign in to comment.