Skip to content

Commit

Permalink
[Enhancement] Reuse the label for retry to avoid duplicate load (#284)
Browse files Browse the repository at this point in the history
Signed-off-by: PengFei Li <[email protected]>
  • Loading branch information
banmoy committed Sep 13, 2023
1 parent 36e2d25 commit 21a970d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ public LabelGenerator getLabelGenerator() {

@Override
public void setLabel(String label) {
// Reuse the same label to avoid duplicate load if retry happens
if (numRetries > 0 && label != null) {
return;
}
this.label = label;
}

Expand Down

0 comments on commit 21a970d

Please sign in to comment.