nathadfield commented on issue #44893:
URL: https://github.com/apache/airflow/issues/44893#issuecomment-2545486339

   @karenbraganz I think, in the scenario you describe, this is the desired 
behaviour.  The reason why the task is not going into an `UP_FOR_RETRY` state 
is because the we have reached the 
[timeout](https://airflow.apache.org/docs/apache-airflow/stable/core-concepts/tasks.html#timeouts).
   
   When this occurs, the sensor task will immediately raise a 
`AirflowSensorTimeout` exception and fail without retrying.
   
   ```
   [2024-12-16, 12:09:25 GMT] {external_task.py:274} INFO - Poking for DAG 
'non_existent_dag' on 2024-12-16T12:07:00+00:00 ... 
   [2024-12-16, 12:09:25 GMT] {taskinstance.py:301} INFO - Sensor has timed 
out; run duration of 10.012994088 seconds exceeds the specified timeout of 5.0.
   ```
   
   It makes no sense to retry a sensor just for a timeout; instead the timeout 
should be longer.


-- 
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