Hi all,

A data point for Wei's point 3, that a supervisor kill after
execution_timeout plus the grace period should carry timeout.

That path is not only reached by hung tasks. In
https://github.com/apache/airflow/issues/77993 a Python task raises
AirflowTaskTimeout as expected, but the alarm fires while the task is
sending a large request to the supervisor (for example a big
xcom_push), so the frame is cut and the task's terminal-state request
is never answered. The task then waits until the supervisor's backstop
sends SIGTERM after killed_task_cleanup_time, and SIGKILL after another
killed_task_cleanup_time.

On that path today, in an end-to-end run with the real supervisor and
a mocked API client: without retries the supervisor reports failed
from the exit code, and with retries left it reports no terminal state
at all (the gap in point 3 of
https://github.com/apache/airflow/issues/75394). So if the supervisor
is what writes failure_kind=timeout here, it may also need to report
the retry outcome itself, or the retry case is left with no label.

Thanks,
Vishak

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to