Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ def __init__(self, *args, **kwargs):
self.kube_client: client.CoreV1Api | None = None
self.scheduler_job_id: str | None = None
self._last_completed_pod_adoption = 0.0
self.last_handled: dict[TaskInstanceKey, float] = {}
self.kubernetes_queue: str | None = None
self.task_publish_retries: Counter[TaskInstanceKey] = Counter()
self.task_publish_max_retries = self.conf.getint(
Expand Down Expand Up @@ -228,9 +227,6 @@ def execute_async(
pod_template_file = None
self.event_buffer[key] = (TaskInstanceState.QUEUED, self.scheduler_job_id)
self.task_queue.put(KubernetesJob(key, command, kube_executor_config, pod_template_file))
# We keep a temporary local record that we've handled this so we don't
# try and remove it from the QUEUED state while we process it
self.last_handled[key] = time.time()

def queue_workload(self, workload: workloads.All, session: Session | None) -> None:
from airflow.executors import workloads
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -720,12 +720,6 @@ metrics:
legacy_name: "-"
name_variables: []

- name: "kubernetes_executor.clear_not_launched_queued_tasks.duration"
description: "Milliseconds taken for clearing not launched queued tasks in Kubernetes Executor"
type: "timer"
legacy_name: "-"
name_variables: []

- name: "kubernetes_executor.adopt_task_instances.duration"
description: "Milliseconds taken to adopt the task instances in Kubernetes Executor"
type: "timer"
Expand Down
Loading