class_docstr: Chooses between LocalExecutor and KubernetesExecutor based on the queue defined on the task.
  
  When the task's queue is the value of ``kubernetes_queue`` in section ``[local_kubernetes_executor]``
  of the configuration (default value: `kubernetes`), KubernetesExecutor is selected to run the task,
  otherwise, LocalExecutor is used.
class_docstr_tok: ["Chooses","between","LocalExecutor","and","KubernetesExecutor","based","on","the","queue","defined","on","the","task",".","When","the","task","'s","queue","is","the","value","of","``","kubernetes_queue","``","in","section","``","[","local_kubernetes_executor","]","``","of","the","configuration","(","default","value",":","`","kubernetes","`",")",",","KubernetesExecutor","is","selected","to","run","the","task",",","otherwise",",","LocalExecutor","is","used","."]
docstr: Check if a task is either queued or running in either local or kubernetes executor.
  
  :param task_instance: TaskInstance
  :return: True if the task is known to this executor
docstr_tok: ["Check","if","a","task","is","either","queued","or","running","in","either","local","or","kubernetes","executor",".",":","param","task_instance",":","TaskInstance",":","return",":","True","if","the","task","is","known","to","this","executor"]
code: def has_task(self, task_instance: TaskInstance) -> bool:
      """
      Check if a task is either queued or running in either local or kubernetes executor.
  
      :param task_instance: TaskInstance
      :return: True if the task is known to this executor
      """
      return self.local_executor.has_task(
          task_instance
      ) or self.kubernetes_executor.has_task(task_instance)
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Sequence
  from airflow.configuration import conf
  from airflow.providers.cncf.kubernetes.executors.kubernetes_executor import KubernetesExecutor
  from airflow.utils.log.logging_mixin import LoggingMixin
label_desc: Use image node_id 11 for calling the LocalKubernetesExecutor obj's underlying member method code with example usage: obj.has_task(task_instance) and returns: unknown