You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "SamWheating (via GitHub)" <gi...@apache.org> on 2023/09/12 18:14:34 UTC
[GitHub] [airflow] SamWheating commented on issue #34309: Incorrect try_number when searching task instances
SamWheating commented on issue #34309:
URL: https://github.com/apache/airflow/issues/34309#issuecomment-1716204144
I think that this is because of how `try_number` is defined in task_instance, it will be increased by 1 if the task is completed.
https://github.com/apache/airflow/blob/eed2901e877b32a211e0e74bc9d69fc11e552f2a/airflow/models/taskinstance.py#L607-L618
So we should probably use `prev_attempted_tries` (which is the _actual_ try number) when surfacing this in the UI. Feel free to assign to me and I can figure something out.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org