Skip to content

Conversation

@github-actions
Copy link

  • Add triggering_user_name to DagRunProtocol interface

    Enable tasks running in isolated environments to access the username
    that triggered a DAG run without requiring direct database access.

    Changes:

    • Add triggering_user_name field to DagRunProtocol interface
    • Update task-sdk DagRun data model to include triggering_user_name
    • Update execution API DagRun model to include triggering_user_name
    • Ensure field flows from database through API to task context

    This allows developers to identify DAG run triggers from within task
    code using the existing DagRunProtocol interface.

  • Fix tests!

  • Add Cadwyn migration for triggering_user_name field in DagRunProtocol

    Add backward compatibility migration for the new triggering_user_name field
    added to the DagRun model in the Execution API. This ensures older API
    clients continue to work seamlessly with newer API servers.

  • Add tests for older versions where triggering user is missing

  • Remove triggering user from v2025-04-28

  • Add a test with triggering_user_name set
    (cherry picked from commit 3120146)

Co-authored-by: Dheeraj Turaga dheerajturaga@gmail.com

)

* Add triggering_user_name to DagRunProtocol interface

  Enable tasks running in isolated environments to access the username
  that triggered a DAG run without requiring direct database access.

  Changes:
  - Add triggering_user_name field to DagRunProtocol interface
  - Update task-sdk DagRun data model to include triggering_user_name
  - Update execution API DagRun model to include triggering_user_name
  - Ensure field flows from database through API to task context

  This allows developers to identify DAG run triggers from within task
  code using the existing DagRunProtocol interface.

* Fix tests!

* Add Cadwyn migration for triggering_user_name field in DagRunProtocol

  Add backward compatibility migration for the new triggering_user_name field
  added to the DagRun model in the Execution API. This ensures older API
  clients continue to work seamlessly with newer API servers.

* Add tests for older versions where triggering user is missing

* Remove triggering user from v2025-04-28

* Add a test with triggering_user_name set
(cherry picked from commit 3120146)

Co-authored-by: Dheeraj Turaga <dheerajturaga@gmail.com>
@boring-cyborg boring-cyborg bot added area:API Airflow's REST/HTTP API area:task-sdk labels Oct 13, 2025
@potiuk potiuk marked this pull request as ready for review October 16, 2025 10:40
@potiuk
Copy link
Member

potiuk commented Oct 16, 2025

Not sure if we want to merge this one for 3.1.1 @kaxil @pierrejeambrun ?

@kaxil
Copy link
Member

kaxil commented Oct 16, 2025

Naah, I'll keep this for 3.2

@kaxil kaxil closed this Oct 16, 2025
@kaxil kaxil deleted the backport-3120146-v3-1-test branch October 23, 2025 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API area:task-sdk

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants