-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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
Create TaskHandlersMovedRule to ease upgrade to Airflow 2.0 #11051
Comments
I'm interested in this issue |
But it seems like this could be added to the import changes rule PR #11056? |
@ephraimbuddy this is more like about checking that users configuration in airflow.cfg uses old task handlers in |
Got it |
The remote logging documentation for the stable release is the same as the master documentation. 2.0 doc: https://airflow.readthedocs.io/en/latest/logging-monitoring/logging-tasks.html I'm finding it difficult looking for what to check in previous version that has changed in 2.0. What do you think? |
That's exactly the change. I see that the UPDATING.md has changed a bit since we created the list of rules... We should check if users configuration uses one of those handlers and warn them that this will change in 2.0 |
I'm suggesting that we add it in import change PR #11056 just like we added it in the deprecated classes here: airflow/tests/deprecated_classes.py Line 1783 in 51181e8
This will help us not to duplicate code. What do you think? airflow/tests/deprecated_classes.py Lines 1756 to 1781 in 51181e8
|
Ok. It's clear now |
Closed via #11265 |
This issue is part of #8765
Rule
Create
TaskHandlersMovedRule
which corresponds toentry in UPDATING.md. This rule should allow users to check if their current configuration needs any adjusting
before migration to Airflow 2.0.
How to guide
To implement a new rule, create a class that inherits from
airflow.upgrade.rules.base_rule.BaseRule
.It will be auto-registered and used by
airflow upgrade-check
command. The custom rule class has to havetitle
,description
properties and should implementcheck
method which returns a list of error messages in case ofincompatibility.
For example:
airflow/airflow/upgrade/rules/conn_type_is_not_nullable.py
Lines 25 to 42 in ea36166
Remember to open the PR against
v1-10-test
branch.The text was updated successfully, but these errors were encountered: