-
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 CustomExecutorsRequireFullPathRule to ease upgrade to Airflow 2.0 #11053
Comments
Hi @turbaszek could I try working on this? |
I assigned you :) |
@pcandoalmeida in case of any questions feel free to ask 👌 |
Hi @pcandoalmeida have you made any progress on this ticket? If you do not have time I can take it over. |
Hi @dimberman yes by all means! |
@turbaszek @kaxil I'm a bit confused by this https://github.com/apache/airflow/blob/master/airflow/executors/executor_loader.py#L81-L110 Looking at these lines it looks like Airflow 2.0 still allows loading from plugins? Does this need to be an upgrade check or deprecation warning? |
@turbaszek Is there a rule to do the same (use normal Python package / modules) for operators and sensors? I couldn't find one but we removed the support for adding operators and sensors via Plugins so we should have a check for it. |
closed by #13678 |
This issue is part of #8765
Rule
Create
CustomExecutorsRequireFullPathRule
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: