You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "1fanwang (via GitHub)" <gi...@apache.org> on 2025/09/30 22:53:30 UTC
[I] Add timeout context to DagRun failure state listener hook [airflow]
1fanwang opened a new issue, #56273:
URL: https://github.com/apache/airflow/issues/56273
### Description
Currently, when a DAG run times out and is marked as failed, the notify_dagrun_state_changed() call doesn't include any context about the timeout reason. This makes it difficult for listeners and observability systems to distinguish between timeout failures and other types of DAG failures.
### Use case/motivation
Problem: DAG timeout failures are indistinguishable from other failure types in listener, limiting observability and error classification capabilities.
Solution: Pass a "timed_out" message to notify_dagrun_state_changed() when a DAG run fails due to timeout, providing context to listeners about the specific failure reason.
Benefits:
Enables better error categorization in observability systems
Allows listeners to handle timeout failures differently from other failure types
Improves debugging and monitoring capabilities
Maintains backward compatibility (msg parameter is optional)
### Related issues
_No response_
### Are you willing to submit a PR?
- [x] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
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: commits-unsubscribe@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Add timeout context to DagRun failure state listener hook [airflow]
Posted by "jscheffl (via GitHub)" <gi...@apache.org>.
jscheffl closed issue #56273: Add timeout context to DagRun failure state listener hook
URL: https://github.com/apache/airflow/issues/56273
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org