mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 1414924 - test-action-callback prints task definitions scrambled r=dustin
MozReview-Commit-ID: GiJsOiTVUXL --HG-- extra : rebase_source : 2beb402ee8b5d9ad181df729e062ad3572b753f8
This commit is contained in:
parent
4783c071f3
commit
a903e7c823
@ -64,7 +64,9 @@ def create_tasks(taskgraph, label_to_taskid, params, decision_task_id=None):
|
||||
task_def['taskGroupId'] = task_group_id
|
||||
task_def['schedulerId'] = scheduler_id
|
||||
|
||||
with futures.ThreadPoolExecutor(CONCURRENCY) as e:
|
||||
# If `testing` is True, then run without parallelization
|
||||
concurrency = CONCURRENCY if not testing else 1
|
||||
with futures.ThreadPoolExecutor(concurrency) as e:
|
||||
fs = {}
|
||||
|
||||
# We can't submit a task until its dependencies have been submitted.
|
||||
@ -129,6 +131,8 @@ def create_task(session, task_id, label, task_def):
|
||||
if testing:
|
||||
json.dump([task_id, task_def], sys.stdout,
|
||||
sort_keys=True, indent=4, separators=(',', ': '))
|
||||
# add a newline
|
||||
print("")
|
||||
return
|
||||
|
||||
logger.debug("Creating task with taskId {} for {}".format(task_id, label))
|
||||
|
Loading…
Reference in New Issue
Block a user