Bug 1433761 - ensure that max-run-time is working from taskcluster -> talos. r=dustin

This commit is contained in:
Joel Maher
2018-02-09 10:08:44 -05:00
parent 9876ceb58b
commit d47be69a49
2 changed files with 7 additions and 0 deletions

View File

@@ -449,6 +449,9 @@ task_description_schema = Schema({
Required('implementation'): 'native-engine',
Required('os'): Any('macosx', 'linux'),
# the maximum time to run, in seconds
Required('max-run-time'): int,
# A link for an executable to download
Optional('context'): basestring,
@@ -1221,6 +1224,7 @@ def build_macosx_engine_payload(config, task, task_def):
'command': worker['command'],
'env': worker['env'],
'artifacts': artifacts,
'maxRunTime': worker['max-run-time'],
}
if worker.get('reboot'):
task_def['payload'] = worker['reboot']