class_docstr: Synchronous abstraction for tracking requests.
class_docstr_tok: ["Synchronous","abstraction","for","tracking","requests","."]
docstr: Abort a request during next background loop iteration.
docstr_tok: ["Abort","a","request","during","next","background","loop","iteration","."]
code: def abort_request(
      self, request_id: str, *, verbose: bool = False
  ) -> None:
      """Abort a request during next background loop iteration."""
      if verbose:
          logger.info(f"Aborted request {request_id}.")
  
      self._finished_requests.put_nowait(request_id)
  
      if (
          request_id not in self._request_streams
          or self._request_streams[request_id].finished
      ):
          # The request has already finished or been aborted.
          return
  
      self._request_streams[request_id].finish()
  
imports: import asyncio
  import time
  from functools import partial
  from typing import Any, Dict, Iterable, List, Optional, Set, Tuple, Type, Union
  from bigdl.llm.vllm.config import ModelConfig
  from bigdl.llm.vllm.engine.arg_utils import AsyncEngineArgs
  from bigdl.llm.vllm.engine.llm_engine import LLMEngine
  from bigdl.llm.vllm.logger import init_logger
  from bigdl.llm.vllm.outputs import RequestOutput
  from bigdl.llm.vllm.sampling_params import SamplingParams
  from bigdl.llm.utils.common import invalidInputError
label_desc: Use image node_id 7 for calling the RequestTracker obj's underlying member method code with example usage: obj.abort_request(request_id) without return types