Skip to content

Commit

Permalink
Attempt to fix bug with inputs/outputs shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-kotliar committed Sep 21, 2020
1 parent ce87759 commit 52f8261
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cwl_airflow/extensions/cwldag.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,10 @@ def __assemble(self):

for _, output_data in get_items(self.workflow_tool["outputs"]):
for output_source_id, _ in get_items(output_data["outputSource"]): # in case "outputSource" is a list
self.gatherer.set_upstream(task_by_out_id[output_source_id]) # connected to gatherer
try:
self.gatherer.set_upstream(task_by_out_id[output_source_id]) # connected to another step
except KeyError:
self.gatherer.set_upstream(self.dispatcher) # connected to dispatcher

# safety measure in case of very specific workflows
# if gatherer happened to be not connected to anything, connect it to all "leaves"
Expand Down

0 comments on commit 52f8261

Please sign in to comment.