zlokomatic opened a new issue, #52254:
URL: https://github.com/apache/airflow/issues/52254
### Apache Airflow version
3.0.2
### If "Other Airflow 2 version" selected, which one?
_No response_
### What happened?
After a task failed the values for ti_failures are not increased.
As we are using statsd/prometheus to monitor airflow_ti_failures for task
failures we are not alarmed about this.
### What you think should happen instead?
A failing task should increase ti_failures
### How to reproduce
Environment
```
AIRFLOW__METRICS__STATSD_ON: 'true'
AIRFLOW__METRICS__STATSD_HOST: 'statsd_exporter'
AIRFLOW__METRICS__STATSD_PORT: '9125'
AIRFLOW__METRICS__STATSD_DATADOG_ENABLED: 'true'
````
Activate statsd server
Dag:
```
from airflow import DAG
from airflow.operators.bash import BashOperator
from datetime import datetime, timedelta
with DAG(
dag_id="failure_handling_dag",
start_date=datetime(2025, 4, 1),
schedule="@daily",
catchup=False,
) as dag:
fail_task = BashOperator(
task_id="fail_task",
bash_command="sleep 5 && exit 1",
)
```
### Operating System
Ubuntu 22.04.5 LTS
### Versions of Apache Airflow Providers
Default with apache-airflow 3.0.2 docker image
### Deployment
Docker-Compose
### Deployment details
_No response_
### Anything else?
_No response_
### Are you willing to submit 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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]