session.query is no longer supported in airflow 3.0.2 #52355
Replies: 4 comments
-
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval. |
Beta Was this translation helpful? Give feedback.
-
Correct. Direct database access possibility has been strongly discouraged from the beginning of Airflow 2, it has been mentioned as not part of Public Interface and removed in Airflow 3 . You should use |
Beta Was this translation helpful? Give feedback.
-
Converting it to a discussion if more is needed. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the reply! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Apache Airflow version
3.0.2
If "Other Airflow 2 version" selected, which one?
No response
What happened?
Hi
I am currently migrating my project from airflow 2.10.5 to airflow 3.0.2
Inside i've already have a service which manages dags state i.e
However after trying to launch code in the latest airflow i am getting the following problem:
RuntimeError: Direct database access via the ORM is not allowed in Airflow 3.0
Is there any workaround in the latest airflow to manage dags state?
What you think should happen instead?
No response
How to reproduce
Any usage of
session.query
Operating System
macOS Sequoia 15.5
Versions of Apache Airflow Providers
apache-airflow-providers-fab==2.2.1
apache-airflow-providers-cncf-kubernetes==8.4.0
apache-airflow-providers-databricks==7.4.0
apache-airflow-providers-microsoft-azure==12.4.1
apache-airflow-providers-standard==1.3.0
Deployment
Docker-Compose
Deployment details
No response
Anything else?
No response
Are you willing to submit PR?
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions