Change DeprecationWarning to AirflowDeprecationWarning
See original GitHub issueBody
It’s becoming hard to differentiate between all warnings raised in logs. Airflow uses many packages that also raise warnings.
I suggest to create AirflowDeprecationWarning.
We can even have similar mechanism to sqlalchemy that has SADeprecationWarning and specifying the version this warning started from that way it will also be easier to keep track.
https://github.com/sqlalchemy/sqlalchemy/blob/769fa67d842035dd852ab8b6a26ea3f110a51131/lib/sqlalchemy/exc.py#L779
We can also have AirflowProviderDeprecationWarning to differentiate from Airflow core
Originally posted in https://github.com/apache/airflow/pull/22333#discussion_r829106399
What do others think?
Committer
- I acknowledge that I am a maintainer/committer of the Apache Airflow project.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Airflow DeprecationWarning
I changed the variables in docker-compose .env and restarted the containers. What led me off at first, was that these variables were correctly ......
Read more >Resolve "Update airflow to avoid deprecation warnings" - GitLab
This value has been changed to 'StandardTaskRunner' in the running config, ... DeprecationWarning: Specifying both AIRFLOW_HOME environment variable and ...
Read more >Source code for airflow.configuration
If it does a # DeprecationWarning will be issued and the old name will be used ... of old default values that we...
Read more >Deprecation warnings for PythonOperator and HttpHook
... DeprecationWarning: Importing HttpHook directly from <module 'airflow.hooks' ... Support for direct imports will be dropped entirely in Airflow 2.0.
Read more >Airflow (by Apache) – Index - Wilson Mar
py:345 DeprecationWarning: The log_processor_filename_template option in [core] has been moved to the log_processor_filename_template option in ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

in
AirflowProviderDeprecationWarningi meant for warnings which are in scope of the provider itself and are not tied to Airflow core (like Operator rename).I agree think we should copy what other projects do (SQLA, Celery, Djanog etc), and have a
RemovedInAirflow3warning subclass.