Skip to content

Commit 09194c7

Browse files
committed
fix(workflow): report finish when restart already complete
1 parent 882ba94 commit 09194c7

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

deepks/orchestration/workflow/workflow.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,8 @@ def run(self, parent_tag=(), restart_tag=None):
6767
print_prefix += "║"
6868
for j in range(self.max_depth()-1):
6969
print_suffix += "═"
70-
if not print_restart:
71-
print(print_prefix + "╚" + print_suffix + " [ FINISH ] " + str(parent_tag + (last_idx,)))
72-
else:
73-
print(print_prefix + "╚" + print_suffix + " [ RESTART ] " + str(parent_tag + (last_idx,)))
74-
print_restart = False
70+
print(print_prefix + "╚" + print_suffix + " [ FINISH ] " + str(parent_tag + (last_idx,)))
71+
print_restart = False
7572
for i in range(start_idx, len(self.child_tasks)):
7673
curr_tag = parent_tag + (i,)
7774
print_prefix = ""

0 commit comments

Comments
 (0)