-
Notifications
You must be signed in to change notification settings - Fork 68
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
feat!: Adds support for Airflow 2 Cloud Composer environment and operators #134
Merged
Conversation
This file contains 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 was referenced Aug 9, 2021
adlersantos
added
cleanup
Cleanup or refactor code
feature request
New feature or request
revision: readme
Improvements or additions to the README
labels
Aug 9, 2021
leahecole
requested changes
Aug 9, 2021
* revised dependendices for Airflow 2.1.1 * use proper variables file as required by Airflow 2 * changed README to use Airflow 2 requirement * uncommented deploy_dag_versioning check * feat: Upgrade `usa_names` pipeline to usse Airflow 2 operators and environment (#136)
leahecole
reviewed
Aug 10, 2021
leahecole
approved these changes
Aug 10, 2021
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
cla: yes
cleanup
Cleanup or refactor code
feature request
New feature or request
revision: readme
Improvements or additions to the README
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.
Description
This PR is the last to be merged in a series of breaking pull requests that upgrades the architecture to Airflow 2:
usa_names
pipeline to use Airflow 2 operators #136Changes
First, DAGs are now generated using Airflow 2.0+ operators by specifying an
airflow_version: 2
in thedag
block of the YAML configFor backwards compatibility, pipelines default to using Airflow 1.10 operators if
airflow_version
is unspecified (tested it with theusa_names
dataset in #136.Next, we can now import Airflow 2.x equivalents of commonly used Airflow 1.10.15 operators.
Next, because Airflow 1.10 DAGs can run in an Airflow 2.x environment, but not the other way around, I added some version compatibility checks when deploying a DAG.
Finally, I revised
deploy_dag
to use the new Airflow 2 CLI:Checklist
Note: Delete items below that aren't applicable to your pull request.
README
accordingly.