Bug 1463480 - always set task, even for taskgraph-level actions; r?tomprince draft
authorDustin J. Mitchell <dustin@mozilla.com>
Tue, 22 May 2018 17:24:27 +0000
changeset 798340 400f9ab12a50bcc267747625e42c6cbb386f8145
parent 798084 b75acf9652937ce79a9bf02de843c100db0e5ec7
push id110718
push userdmitchell@mozilla.com
push dateTue, 22 May 2018 17:25:23 +0000
reviewerstomprince
bugs1463480
milestone62.0a1
Bug 1463480 - always set task, even for taskgraph-level actions; r?tomprince MozReview-Commit-ID: 5A50Tef72gk
taskcluster/taskgraph/actions/registry.py
--- a/taskcluster/taskgraph/actions/registry.py
+++ b/taskcluster/taskgraph/actions/registry.py
@@ -280,16 +280,18 @@ def trigger_action_callback(task_group_i
         create.testing = True
         taskcluster.testing = True
 
     # fetch the task, if taskId was given
     # FIXME: many actions don't need this, so move this fetch into the callbacks
     # that do need it
     if task_id:
         task = taskcluster.get_task_definition(task_id)
+    else:
+        task = None
 
     cb(Parameters(**parameters), graph_config, input, task_group_id, task_id, task)
 
 
 def _load(graph_config):
     # Load all modules from this folder, relying on the side-effects of register_
     # functions to populate the action registry.
     actions_dir = os.path.dirname(__file__)