Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix duplication of Task tries in the UI (apache#43891) (apache#43950)
It was observed that there are moments where the TI tries endpoint returns duplicate TaskInstance. I have observed this to happen when the TI is in up_for_retry state. When the TI is in up_for_retry state, we have already recorded the previous try in TI history and the TI try_number has not incremented at this time, so we must exclude this recorded TI from the taskinstance tries endpoint. We know the TI because its state is in up_for_retry, so we filter TIs with up_for_retry state when querying for the task instance tries. Closes: apache#41765 (cherry picked from commit 4bc1257)
- Loading branch information