Skip to content

Commit 00d1680

Browse files
authored
Update for the changed API of Pipeline.node_dependencies (FoundryAI#3)
1 parent ebb8619 commit 00d1680

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ jobs:
2727
name: Pip install dependencies
2828
command: |
2929
make install-pip-setuptools
30-
pip install "kedro>=0.dev0"
30+
pip install git+https://github.com/quantumblacklabs/kedro
3131
export AIRFLOW_GPL_UNIDECODE=yes
32-
pip install -r requirements.txt -U
33-
pip install -r test_requirements.txt -U
32+
pip install -r requirements.txt
33+
pip install -r test_requirements.txt
3434
- run:
3535
name: Run pylint and flake8
3636
command: |

kedro_airflow/runner.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,9 @@ def _run(self, pipeline: Pipeline, catalog: DataCatalog) -> None:
114114
)
115115
)
116116

117+
node_dependencies = pipeline.node_dependencies
117118
operators_by_node = {}
118-
for node in pipeline.nodes:
119+
for node in node_dependencies:
119120
name = slugify(node.name)
120121
operators_by_node[node] = PythonOperator(
121122
task_id=name,
@@ -125,5 +126,6 @@ def _run(self, pipeline: Pipeline, catalog: DataCatalog) -> None:
125126
**self._operator_arguments(name)
126127
)
127128

128-
for child, parent in pipeline.node_dependencies:
129-
operators_by_node[child].set_upstream(operators_by_node[parent])
129+
for node, dependencies in node_dependencies.items():
130+
for dependency in dependencies:
131+
operators_by_node[node].set_upstream(operators_by_node[dependency])

0 commit comments

Comments
 (0)