Skip to content

Commit ddcb36a

Browse files
committed
DEBUG
1 parent d193845 commit ddcb36a

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
@@ -82,23 +82,36 @@ def submit(task_id, label, task_def):
8282
fs_to_task[fut] = (task_id, label)
8383

8484
for task_id in tasklist:
85+
86+
def dump(msg):
87+
if taskid_to_label[task_id] == "complete-pr":
88+
print(msg)
89+
90+
dump("NEW ITERATION")
91+
8592
task_def = taskgraph.tasks[task_id].task
8693
# Some dependencies aren't in our graph, so make sure to filter
8794
# those out
8895
deps = set(task_def.get("dependencies", [])) & alltasks
96+
dump(deps)
97+
dump("skipped:")
98+
dump(skipped)
8999

90100
# If one of the dependencies didn't get created, then
91101
# don't attempt to submit as it would fail.
92102
if any(d in skipped for d in deps):
103+
dump("skipping complete-pr YAY")
93104
skipped.add(task_id)
94105
to_remove.add(task_id)
95106
continue
96107

97108
# If we haven't finished submitting all our dependencies yet,
98109
# come back to this later.
99110
if any((d not in fs or not fs[d].done()) for d in deps):
111+
dump("nooooot done")
100112
continue
101113

114+
dump("submitting :(")
102115
submit(task_id, taskid_to_label[task_id], task_def)
103116
to_remove.add(task_id)
104117

0 commit comments

Comments
 (0)