kyungjunleeme commented on code in PR #53782:
URL: https://github.com/apache/airflow/pull/53782#discussion_r2233884963
##########
airflow-core/src/airflow/models/dagrun.py:
##########
@@ -1373,7 +1374,10 @@ def get_last_ti(self, dag: DAG, session: Session =
NEW_SESSION) -> TI | None:
if dag.partial:
tis = [ti for ti in tis if not ti.state == State.NONE]
# filter out removed tasks
- tis = [ti for ti in tis if ti.state != TaskInstanceState.REMOVED]
+ tis = natsorted(
Review Comment:
@potiuk
<img width="762" height="506" alt="image"
src="https://github.com/user-attachments/assets/7ebb1101-2459-4b40-9ab6-4a8a8b43b239"
/>
I realize now that my explanation of how task IDs are generated was
completely incorrect.
Sorry. ㅠㅠ
I've added a strikethrough to the relevant section. I had confused it with
how dag_run_ids are generated, as shown in the screenshot.
However, the package I introduced still provides clear value — it ensures
sorting is done in the way we naturally expect.
--
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]