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

   When a dag run fails due to `dagrun_timeout`, the `DualStatsManager.timing` 
call for `dagrun.duration.failed` used `tags={"dag_id": dag_run.dag_id}` 
instead of `dag_run.stats_tags`. This meant `run_type` was always absent from 
timeout-caused failures, making it impossible to filter the metric by 
`run_type` in monitoring queries.
   
   The normal finish path in `dagrun.py` correctly uses `self.stats_tags` 
(which includes both `dag_id` and `run_type`). This aligns the timeout path to 
match.
   
   closes: #64765
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Claude Code (claude-sonnet-4-6)
   
   Generated-by: Claude Code (claude-sonnet-4-6) 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