Loki query range retry config

Hi Guys,
I have a question about loki query range retry config, when the grafana UI called loki query range, if there is http error like 500, loki query range api have a retry mechanism, we want to set the retry times to 2.
You could see the retry: 2 below, but it doesn’t work. Do anyone knows the reason why?
Code:

  1. const queryOptions = { ...options, maxDataPoints: linesLimit, retry: 2 };
    
  2. if ((options as DataQueryRequest<LokiQuery>).liveStreaming) {
    
  3.   return this.runLiveQuery(target, queryOptions);
    
  4. }
    
  5. const query = this.createRangeQuery(target, queryOptions);
    
  6. return this._request(RANGE_QUERY_ENDPOINT, query).pipe(
    
  7.   catchError((err: any) => this.throwUnless(err, err.status === 404, target)),
    
  8.   switchMap((response: { data: LokiResponse; status: number }) =>
    
  9.     processRangeQueryResponse(
    
  10.       response.data,
    
  11.       target,
    
  12.       query,
    
  13.       responseListLength,
    
  14.       linesLimit,
    
  15.       this.instanceSettings.jsonData,
    
  16.       (options as DataQueryRequest<LokiQuery>).scopedVars,
    
  17.       (options as DataQueryRequest<LokiQuery>).reverse
    
  18.     )
    
  19.   )
    
  20. );
    
  21.   };