Skip to content
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

Allow users to disable auto addition of inlets/outlets via airflow.cfg #858

Merged
merged 1 commit into from
Sep 15, 2022

Conversation

kaxil
Copy link
Collaborator

@kaxil kaxil commented Sep 15, 2022

Astro SDK automatically adds inlets and outlets for all the operators if DATASET is supported (Airflow >=2.4).

Users can over-ride it on a task level by adding inlets and outlets themselves. However, for users who want to use SDK with Airflow 2.4 and above but do not want to leverage Data-aware scheduling, auto-addition of inlets/outlets would be annoying so this new config setting will provide an escape hatch for such users.

closes #857

Does this introduce a breaking change?

No

Checklist

Astro SDK automatically adds inlets and outlets for all the operators if DATASET is supported (Airflow >=2.4).

Users can over-ride it on a task level by adding inlets and outlets themselves. However, for users who want to use SDK with Airflow 2.4 and above but do not want to leverage Data-aware scheduling, auto-addition of inlets/outlets would be annoying so this new config setting will provide an escape hatch for such users.

closes #857
@pankajkoti
Copy link
Contributor

@kaxil did you mean to link #852 in the description for extending the documentation ?

@kaxil
Copy link
Collaborator Author

kaxil commented Sep 15, 2022

@kaxil did you mean to link #852 in the description for extending the documentation ?

yup

@codecov
Copy link

codecov bot commented Sep 15, 2022

Codecov Report

Base: 93.27% // Head: 93.27% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (0de8bf5) compared to base (2692d1c).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #858   +/-   ##
=======================================
  Coverage   93.27%   93.27%           
=======================================
  Files          47       47           
  Lines        2051     2053    +2     
  Branches      257      257           
=======================================
+ Hits         1913     1915    +2     
  Misses        107      107           
  Partials       31       31           
Impacted Files Coverage Δ
python-sdk/src/astro/airflow/datasets.py 94.73% <100.00%> (+0.29%) ⬆️
python-sdk/src/astro/settings.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Collaborator

@utkarsharma2 utkarsharma2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

python-sdk/src/astro/settings.py Show resolved Hide resolved
@kaxil kaxil merged commit aef1d01 into main Sep 15, 2022
@kaxil kaxil deleted the config-inlets-oulets branch September 15, 2022 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow users to disable auto addition of inlets/outlets via airflow.cfg
3 participants