private boolean removeFromPreemptionQueueUnlocked(
      TaskWrapper taskWrapper) {
    boolean removed = preemptionQueue.remove(taskWrapper);
    taskWrapper.setIsInPreemptableQueue(false);
    metrics.setExecutorNumPreemptableRequests(preemptionQueue.size());

    return removed;
  }
Remove the specified taskWrapper from the preemption queue
@param taskWrapper the taskWrapper to be removed
@return true if the element existed in the queue and wasa removed, false otherwise
llap-server/src/java/org/apache/hadoop/hive/llap/daemon/impl/TaskExecutorService.java