From 04c60d2765b0be8b3881ff4aed0382d4c050c4ce Mon Sep 17 00:00:00 2001 From: Tom Prince Date: Wed, 18 Apr 2018 13:04:09 -0600 Subject: [PATCH] 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 --- taskcluster/taskgraph/transforms/signing.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/taskcluster/taskgraph/transforms/signing.py b/taskcluster/taskgraph/transforms/signing.py index 2fac9811054b..2e882feaeb02 100644 --- a/taskcluster/taskgraph/transforms/signing.py +++ b/taskcluster/taskgraph/transforms/signing.py @@ -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,