You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "hbc-acai (via GitHub)" <gi...@apache.org> on 2025/07/10 17:20:20 UTC
[D] Quick Questions on Airflow 3 Upgrade [airflow]
GitHub user hbc-acai created a discussion: Quick Questions on Airflow 3 Upgrade
I am looking to upgrade our Airflow 2.10 to 3.0. I am reading this but I am not sure if it is a complete guide. https://airflow.apache.org/docs/apache-airflow/stable/installation/upgrading_to_airflow3.html
Q1: On Step 5: Review custom operators for direct db access.
I have python operator that calls the ORM models:
```
existing_dag_run = DagRun.find(
dag_id=EXTERNAL_DAG_ID, execution_date=parsed_execution_date)
```
Is this allowed in Airflow 3?
Q2: How can I enable v2 REST API endpoint on the 2.10 Airflow so we can migrate the downstream dependencies
Thank you
GitHub link: https://github.com/apache/airflow/discussions/53152
----
This is an automatically sent email for commits@airflow.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@airflow.apache.org
Re: [D] Quick Questions on Airflow 3 Upgrade [airflow]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
GitHub user potiuk added a comment to the discussion: Quick Questions on Airflow 3 Upgrade
Q1: Only things described in https://airflow.apache.org/docs/apache-airflow/stable/public-airflow-interface.html are possible to be used
Q2: There is no v2 API on Airflow 2. The APIs exposed in Airflow 2 and Airflow 3 are very similar and you can use Python client to communicate voa the APIS. Client is available here https://github.com/apache/airflow-client-python and you can install it from PyPI. Part of the migration should be migration to the new python client. You can use 2.* version of client on Airlfow 2 and migrate your dags to use client 3. This should be very straightforward.
GitHub link: https://github.com/apache/airflow/discussions/53152#discussioncomment-13803665
----
This is an automatically sent email for commits@airflow.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@airflow.apache.org