The GitHub Actions job "Tests" on airflow.git/fix/issue-63089 has failed.
Run started by GitHub user YoannAbriel (triggered by YoannAbriel).

Head commit for run:
c9db0bad83def7f9abca8235d962324b1bd42cd5 / Yoann Abriel <[email protected]>
fix(task-sdk): handle missing DAG in TriggerDagRunOperator gracefully

When TriggerDagRunOperator targets a non-existent DAG, the API server
returns 404 which was re-raised as ServerResponseError. This propagated
out of _handle_trigger_dag_run into the finally block of run() where
'state' was never assigned, causing UnboundLocalError.

Two fixes:
- Initialize state to FAILED before the try block so the finally block
  always has a valid value
- Handle 404 in the dag_runs client (returning DAG_NOT_FOUND error) and
  in _handle_trigger_dag_run (failing the task gracefully)

Closes: #63089

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

With regards,
GitHub Actions via GitBox


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

Reply via email to