code: func (r *realisClient) GetPendingReason(query *aurora.TaskQuery) ([]*aurora.PendingReason, error) {
  
  	r.logger.DebugPrintf("GetPendingReason Thrift Payload: %+v\n", query)
  
  	resp, retryErr := r.thriftCallWithRetries(func() (*aurora.Response, error) {
  		return r.client.GetPendingReason(nil, query)
  	})
  
  	if retryErr != nil {
  		return nil, errors.Wrap(retryErr, "Error querying Aurora Scheduler for pending Reasons")
  	}
  
  	var pendingReasons []*aurora.PendingReason
  
  	if resp.GetResult_() != nil {
  		pendingReasons = resp.GetResult_().GetGetPendingReasonResult_().GetReasons()
  	}
  
  	return pendingReasons, nil
  }
docs: // Get pending reason