code: func (p *ReadOnlySchedulerClient) GetPendingReason(ctx context.Context, query *TaskQuery) (r *Response, err error) {
    var _args60 ReadOnlySchedulerGetPendingReasonArgs
    _args60.Query = query
    var _result61 ReadOnlySchedulerGetPendingReasonResult
    if err = p.Client_().Call(ctx, "getPendingReason", &_args60, &_result61); err != nil {
      return
    }
    return _result61.GetSuccess(), nil
  }
docs: // Returns user-friendly reasons (if available) for tasks retained in PENDING state.
  // 
  // Parameters:
  //  - Query