ashb commented on code in PR #54547:
URL: https://github.com/apache/airflow/pull/54547#discussion_r2282130557
##########
airflow-core/src/airflow/utils/log/file_task_handler.py:
##########
@@ -610,6 +610,11 @@ def _read(
local_logs: list[RawLogStream] = []
executor_logs: list[RawLogStream] = []
served_logs: list[RawLogStream] = []
+ is_in_not_finished_state = ti.state in (
+ TaskInstanceState.RUNNING,
+ TaskInstanceState.DEFERRED,
+ TaskInstanceState.UP_FOR_RETRY
Review Comment:
What happens when the task is in SUCCESS or FAILED state? Why do those work?
But let me be crystal clear: This is wrong. UP_FOR_RETRY is not a running
state. It is a finished state, the task process is no longer running when this
state is reached
--
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]