class_docstr: Naive Git-stash based experiment queue.
  
  Maps queued experiments to (Git) stash reflog entries.
class_docstr_tok: ["Naive","Git-stash","based","experiment","queue",".","Maps","queued","experiments","to","(","Git",")","stash","reflog","entries","."]
docstr: Shutdown the queue worker.
  
  Arguments:
      kill: If True, the any active experiments will be killed and the
          worker will shutdown immediately. If False, the worker will
          finish any active experiments before shutting down.
docstr_tok: ["Shutdown","the","queue","worker",".","Arguments",":","kill",":","If","True",",","the","any","active","experiments","will","be","killed","and","the","worker","will","shutdown","immediately",".","If","False",",","the","worker","will","finish","any","active","experiments","before","shutting","down","."]
code: def shutdown(self, kill: bool = False):
      """Shutdown the queue worker.
  
      Arguments:
          kill: If True, the any active experiments will be killed and the
              worker will shutdown immediately. If False, the worker will
              finish any active experiments before shutting down.
      """
  
imports: import os
  from abc import ABC, abstractmethod
  from dataclasses import asdict, dataclass
  from typing import TYPE_CHECKING, Any, Collection, Dict, Generator, Iterable, List, Mapping, NamedTuple, Optional, Type, Union
  from dvc_studio_client.post_live_metrics import get_studio_config
  from funcy import retry
  from dvc.dependency import ParamsDependency
  from dvc.env import DVC_EXP_BASELINE_REV, DVC_EXP_NAME, DVC_ROOT
  from dvc.lock import LockError
  from dvc.log import logger
  from dvc.repo.experiments.exceptions import ExperimentExistsError
  from dvc.repo.experiments.executor.base import BaseExecutor
  from dvc.repo.experiments.executor.local import WorkspaceExecutor
  from dvc.repo.experiments.refs import ExpRefInfo
  from dvc.repo.experiments.stash import ExpStash, ExpStashEntry
  from dvc.repo.experiments.utils import EXEC_PID_DIR, EXEC_TMP_DIR, get_exp_rwlock, get_random_exp_name
  from dvc.utils.objects import cached_property
  from dvc.utils.studio import config_to_env
  from .utils import get_remote_executor_refs
label_desc: Use image node_id 20 for calling the BaseStashQueue obj's underlying member method code with example usage: obj.shutdown(kill) without return types