question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Change DeprecationWarning to AirflowDeprecationWarning

See original GitHub issue

Body

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:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
eladkalcommented, Mar 18, 2022

in AirflowProviderDeprecationWarning i meant for warnings which are in scope of the provider itself and are not tied to Airflow core (like Operator rename).

2reactions
ashbcommented, Mar 18, 2022

I agree think we should copy what other projects do (SQLA, Celery, Djanog etc), and have a RemovedInAirflow3 warning subclass.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found