Skip to content

Commit 1342923

Browse files
committed
DEBUG
1 parent db2053e commit 1342923

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/taskgraph/create.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,23 +90,36 @@ def submit(task_id, label, task_def):
9090
fs_to_task[fut] = (task_id, label)
9191

9292
for task_id in tasklist:
93+
94+
def dump(msg):
95+
if taskid_to_label[task_id] == "complete-pr":
96+
print(msg)
97+
98+
dump("NEW ITERATION")
99+
93100
task_def = taskgraph.tasks[task_id].task
94101
# Some dependencies aren't in our graph, so make sure to filter
95102
# those out
96103
deps = set(task_def.get("dependencies", [])) & alltasks
104+
dump(deps)
105+
dump("skipped:")
106+
dump(skipped)
97107

98108
# If one of the dependencies didn't get created, then
99109
# don't attempt to submit as it would fail.
100110
if any(d in skipped for d in deps):
111+
dump("skipping complete-pr YAY")
101112
skipped.add(task_id)
102113
to_remove.add(task_id)
103114
continue
104115

105116
# If we haven't finished submitting all our dependencies yet,
106117
# come back to this later.
107118
if any((d not in fs or not fs[d].done()) for d in deps):
119+
dump("nooooot done")
108120
continue
109121

122+
dump("submitting :(")
110123
submit(task_id, taskid_to_label[task_id], task_def)
111124
to_remove.add(task_id)
112125

0 commit comments

Comments
 (0)