Skip to content

Commit

Permalink
fix(step outputs): support translating DAG artifact outputs
Browse files Browse the repository at this point in the history
Unlike Function outputs, DAG outputs don't have a default field for `path`. This commit fixes that issue.
  • Loading branch information
mostaphaRoudsari committed Mar 10, 2023
1 parent 7b6a983 commit 2e9d240
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions queenbee/io/outputs/step.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ def from_template(template: Union[DAGOutputs, FunctionOutputs], value: Any) -> S

if template.is_artifact:
template_dict['source'] = value
if 'path' not in template_dict:
# path is required for a step but is missing from a DAG output
template_dict['path'] = ''
elif template.is_parameter:
template_dict['value'] = value

Expand Down

0 comments on commit 2e9d240

Please sign in to comment.