SameerMesiah97 opened a new pull request, #70452:
URL: https://github.com/apache/airflow/pull/70452

   **Description**
   
   This is a follow-up to PR #69109, which introduced the `dag_team_name` field 
to the OpenLineage `airflowDagRun` run facet.
   
   This change updates the OpenLineage provider to reuse the existing 
SQLAlchemy session associated with the `DagRun` when resolving the 
`dag_team_name` field.
   
   **Rationale**
   
   During manual testing, it was discovered that creating a new managed session 
triggered Airflow's HA lock protection by performing an unexpected commit 
within the scheduler callback. Reusing the existing `DagRun` session ensures 
the lookup participates in the surrounding transaction while continuing to emit 
the `dag_team_name` field correctly.
   
   ###### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes (please specify the tool below)
   
   Generated-by: [GPT 5.5] following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to