Skip to content

Commit

Permalink
Handle existing dependent targets #1186
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo Peng committed Jan 26, 2019
1 parent 59d928c commit 7b589eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sos/workflow_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,7 @@ def resolve_dangling_targets(self, dag: SoS_DAG, targets: Optional[sos_targets]=
if not mo:
# this is ok, this is just an existing target, no one is designed to
# generate it.
env.logger.info(f'{target} already exists')
continue
if len(mo) > 1:
# this is not ok.
Expand Down Expand Up @@ -749,8 +750,7 @@ def resolve_dangling_targets(self, dag: SoS_DAG, targets: Optional[sos_targets]=
res['step_depends'], res['step_output'], context=context)
node_added = True
added_node += 1
# this case do not count as resolved
# resolved += 1
resolved += 1

if added_node == 0:
break
Expand Down

0 comments on commit 7b589eb

Please sign in to comment.