build: Add queueTtl argument to one more place. (#4219)

This commit is contained in:
Oliver Chang 2020-07-30 08:21:49 +10:00 committed by GitHub
parent 3bc37fc82f
commit ac4af2436f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -28,6 +28,7 @@ from datastore_entities import Project
BASE_PROJECT = 'oss-fuzz-base'
MAX_BUILD_HISTORY_LENGTH = 64
QUEUE_TTL_SECONDS = 60 * 60 * 24 # 24 hours.
def update_build_history(project_name, build_id, build_tag):
@ -82,6 +83,7 @@ def run_build(project_name, image_project, build_steps, credentials, tag):
},
'logsBucket': build_project.GCB_LOGS_BUCKET,
'tags': [project_name + tag,],
'queueTtl': str(QUEUE_TTL_SECONDS) + 's',
}
cloudbuild = build('cloudbuild',