-
Notifications
You must be signed in to change notification settings - Fork 238
Fix the Airflow version condition check to parse inlets/outlets syntax according to the dataset #485
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Fix the Airflow version condition check to parse inlets/outlets syntax according to the dataset #485
Changes from 17 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
828b6e8
Fix the outlets parsing for Airflow 3
pankajastro e7048c9
Update dagfactory/dagbuilder.py
pankajastro 3fca3c1
Update dagfactory/dagbuilder.py
pankajastro 87d300c
Add example dag
pankajastro 2392461
Add example dag
pankajastro 721ae08
Add example dag
pankajastro f376753
Install airflow-3.0.3
pankajastro 53e4114
Fix the AF version in pre-install script
pankajastro 9510ad8
Fix the AF version in pre-install script
pankajastro da9fea0
Add fn to create csv
pankajastro fc1d30e
Disable test
pankajastro e2a46ba
Update dev/dags/asset_triggered_dags.py
pankajastro 9a02238
Update scripts/test/pre-install-airflow.sh
pankajastro 27612a3
Merge branch 'main' into fix_outlet
pankajastro 9b514db
Merge branch 'main' into fix_outlet
pankajastro 22e25b3
Merge branch 'main' into fix_outlet
pankajastro 889a9de
Merge branch 'main' into fix_outlet
pankajastro f7c1fa8
Update scripts/test/pre-install-airflow.sh
pankajastro File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| import os | ||
| from pathlib import Path | ||
|
|
||
| # The following import is here so Airflow parses this file | ||
| # from airflow import DAG | ||
| import dagfactory | ||
|
|
||
| DEFAULT_CONFIG_ROOT_DIR = "/usr/local/airflow/dags/" | ||
| CONFIG_ROOT_DIR = Path(os.getenv("CONFIG_ROOT_DIR", DEFAULT_CONFIG_ROOT_DIR)) | ||
|
|
||
| config_file = str(CONFIG_ROOT_DIR / "asset_triggered_dags.yml") | ||
|
|
||
| example_dag_factory = dagfactory.DagFactory(config_file) | ||
|
|
||
| # Creating task dependencies | ||
| example_dag_factory.generate_dags(globals()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| default: | ||
| default_args: | ||
| start_date: 2025-01-01 | ||
| catchup: false | ||
|
|
||
| producer_dag: | ||
| schedule: "@daily" | ||
| tasks: | ||
| produce_data: | ||
| operator: "airflow.providers.standard.operators.python.PythonOperator" | ||
| python_callable: sample.generate_data | ||
| outlets: | ||
| - __type__: airflow.sdk.Asset | ||
| uri: "file:///$AIRFLOW_HONE/data.csv" | ||
| name: "data_asset" | ||
|
|
||
| consumer_dag: | ||
| schedule: | ||
| - __type__: airflow.sdk.Asset | ||
| uri: "file:///$AIRFLOW_HONE/data.csv" | ||
| name: "data_asset" | ||
| tasks: | ||
| consume_data: | ||
| operator: "airflow.providers.standard.operators.bash.BashOperator" | ||
| bash_command: "echo 'Asset was updated, running DAG!'" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.