raphaelauv opened a new issue, #38735:
URL: https://github.com/apache/airflow/issues/38735
### Apache Airflow version
2.8.4
### If "Other Airflow 2 version" selected, which one?
_No response_
### What happened?
if you clear a deferred task , it do not increment the tries
only mark it failed or succes and then clear it , increment the tries
### What you think should happen instead?
_No response_
### How to reproduce
```python
from datetime import timedelta
from pendulum import today
from airflow import DAG
from airflow.sensors.time_delta import TimeDeltaSensorAsync
with DAG(
dag_id="test_clear_async",
schedule_interval=None,
start_date=today("UTC").add(days=-1)
):
TimeDeltaSensorAsync(task_id="wait_some_seconds_async",
delta=timedelta(seconds=500))
```
activate the pipeline
trigger the pipeline
clear the task while it's deferred
### Operating System
ubuntu 22.04
### Versions of Apache Airflow Providers
_No response_
### Deployment
Docker-Compose
### Deployment details
_No response_
### Anything else?
_No response_
### Are you willing to submit PR?
- [ ] 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]