The GitHub Actions job "Tests" on airflow.git has failed.
Run started by GitHub user kaxil (triggered by kaxil).

Head commit for run:
b431db555b063892b5384b76ec2e4259839ff19b / Kaxil Naik <[email protected]>
AIP-72: Get `TriggerDagRunOperator` working with Task SDK

closes https://github.com/apache/airflow/issues/47499

`TriggerDagRunOperator` requires direct DB access to trigger DAG runs, which is 
not feasible under AIP-72 / Task SDK. Several approaches were considered:

1. **New Airflow API provider**
   - Move `TriggerDagRunOperator` to a new provider built on top of the HTTP 
provider and Airflow API.
   - This would allow DAG authors to configure a dedicated Airflow connection.
   - However, the Public API currently requires API tokens and does not support 
username/password authentication, making setup cumbersome.

2. **Pass Task Token to API**
   - Use Task Token from the controller DAG to authenticate API calls.
   - This would allow triggering DAGs in the same deployment using the 
execution API.
   - However, Task-identity tokens have not been implemented yet.

3. **Handle via Task Execution API (Chosen Approach)**
   - Raise a `TriggerDagRunOperator` exception.
   - The Task Runner catches this and invokes a new endpoint in the Task 
Execution API to trigger the target DAG.

Since (2) is not yet available, this PR/commit implements (3) as a temporary 
solution.

Report URL: https://github.com/apache/airflow/actions/runs/13936442825

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to