Apache Airflow version
2.6.0
What happened
The logic of this line
|
if not (remote_logs and ti.state not in State.unfinished): |
is incorrect.
We are trying to achieve:
when finished, if we don't have remote logs, then read from local
But the this line does the opposite:
when not not unfinished (not finished), if we don't have remote logs, then read from local
Also, the "triple negation logic" is really hard to read 😂 It should be
if ti.state in State.finished and not remote_logs:
What you think should happen instead
No response
How to reproduce
Run 2.6.0 with local logs
Operating System
Irrelevant
Versions of Apache Airflow Providers
No response
Deployment
Other
Deployment details
No response
Anything else
No response
Are you willing to submit PR?
Code of Conduct
Apache Airflow version
2.6.0
What happened
The logic of this line
airflow/airflow/utils/log/file_task_handler.py
Line 323 in ab54c63
is incorrect.
We are trying to achieve:
when finished, if we don't have remote logs, then read from localBut the this line does the opposite:
when not not unfinished (not finished), if we don't have remote logs, then read from localAlso, the "triple negation logic" is really hard to read 😂 It should be
What you think should happen instead
No response
How to reproduce
Run 2.6.0 with local logs
Operating System
Irrelevant
Versions of Apache Airflow Providers
No response
Deployment
Other
Deployment details
No response
Anything else
No response
Are you willing to submit PR?
Code of Conduct