Bug 1517645 - log each task as it is cancelled
authorDustin J. Mitchell <dustin@mozilla.com>
Fri, 04 Jan 2019 21:19:39 +0000
changeset 511123 96a7386c6e5bda914f59fd651b01ec7c03b644d9
parent 511122 a3989f48b153d314c83478c0a157f66fe69f8eca
child 511124 53380666b5c70c68da513dc8ba0c8ff7dfca48c5
push id10547
push userffxbld-merge
push dateMon, 21 Jan 2019 13:03:58 +0000
treeherdermozilla-beta@24ec1916bffe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1517645
milestone66.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1517645 - log each task as it is cancelled Reviewers: bstack Subscribers: tomprince Tags: #secure-revision Bug #: 1517645 Differential Revision: https://phabricator.services.mozilla.com/D15852
taskcluster/taskgraph/actions/cancel_all.py
--- a/taskcluster/taskgraph/actions/cancel_all.py
+++ b/taskcluster/taskgraph/actions/cancel_all.py
@@ -28,16 +28,20 @@ logger = logging.getLogger(__name__)
     description=(
         'Cancel all running and pending tasks created by the decision task '
         'this action task is associated with.'
     ),
     order=400,
     context=[]
 )
 def cancel_all_action(parameters, graph_config, input, task_group_id, task_id, task):
+    def do_cancel_task(task_id):
+        logger.info('Cancelling task {}'.format(task_id))
+        cancel_task(task_id, use_proxy=True)
+
     own_task_id = os.environ.get('TASK_ID', '')
     with futures.ThreadPoolExecutor(CONCURRENCY) as e:
         cancels_jobs = [
-            e.submit(cancel_task, t, use_proxy=True)
+            e.submit(do_cancel_task, t)
             for t in list_task_group(task_group_id) if t != own_task_id
         ]
         for job in cancels_jobs:
             job.result()