Bug 1442545: Add max-run-time to signing workers; r=Callek

Differential Revision: https://phabricator.services.mozilla.com/D974

--HG--
extra : rebase_source : 516e2ef631a24e89c8ae352749452b25766fa1fe
extra : histedit_source : 5791d6042e5ff4f58aa9e3671d38b578da4ac96a
This commit is contained in:
Tom Prince 2018-04-18 13:04:09 -06:00
Родитель ae41b01548
Коммит 04c60d2765
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -66,6 +66,9 @@ signing_description_schema = Schema({
Optional('shipping-phase'): task_description_schema['shipping-phase'],
Optional('shipping-product'): task_description_schema['shipping-product'],
# Optional control for how long a task may run (aka maxRunTime)
Optional('max-run-time'): int,
})
@ -144,7 +147,7 @@ def make_task_description(config, jobs):
'worker-type': get_worker_type_for_scope(config, signing_cert_scope),
'worker': {'implementation': 'scriptworker-signing',
'upstream-artifacts': job['upstream-artifacts'],
'max-run-time': 3600},
'max-run-time': job.get('max-run-time', 3600)},
'scopes': [signing_cert_scope] + signing_format_scopes,
'dependencies': {job['depname']: dep_job.label},
'attributes': attributes,