Bug 1363414: add log prefixing; r?jonasfj draft
authorDustin J. Mitchell <dustin@mozilla.com>
Tue, 09 May 2017 15:47:08 +0000
changeset 5163 527b7c6fb4f18112e6a8e4bfc955bb8c50904258
parent 5162 cb2e7ed17f99ba3491a66acf3f073e09865d9397
push id2644
push userdmitchell@mozilla.com
push dateTue, 09 May 2017 15:47:13 +0000
reviewersjonasfj
bugs1363414
Bug 1363414: add log prefixing; r?jonasfj MozReview-Commit-ID: AiQZmGSyEYe
modules/taskcluster_worker/templates/taskcluster-worker.yml.erb
--- a/modules/taskcluster_worker/templates/taskcluster-worker.yml.erb
+++ b/modules/taskcluster_worker/templates/taskcluster-worker.yml.erb
@@ -18,19 +18,27 @@ config:
   plugins:
     disabled: []
     artifacts: {}
     livelog: {}
     success: {}
     reboot:
       maxLifeCycle: '96 hours'
       allowTaskReboots: true
+    # tasks can never take more than 96 hours (but typically are limited by their own maxRunTime)
     maxruntime:
       maxRunTime: '96 hours'
       perTaskLimit: allow
+    #  if any step takes more than 30 min we shutdown, except the running step
+    #  which is limited by maxruntime (doesn't work - https://github.com/taskcluster/taskcluster-worker/issues/271)
+    # watchdog: {}
+    logprefix:
+      hostname: <%= scope.lookupvar('::fqdn') %>
+      workerType: <%= @taskcluster_worker_type %>
+      workerGroup:  <%= @taskcluster_worker_group %>
     env:
       extra:
 <% if @operatingsystem == 'Darwin' -%>
         PATH: "/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
         # we probably don't need the remainder
         TMPDIR: {$env: TMPDIR}
         SHELL: '/bin/bash'
         LANG: 'en_US.UTF-8'