class_docstr: Runs all components of Airflow under a single parent process.
  
  Useful for local development.
class_docstr_tok: ["Runs","all","components","of","Airflow","under","a","single","parent","process",".","Useful","for","local","development","."]
docstr: Check if the given job name is running and heartbeating correctly.
  
  Used to tell if scheduler is alive.
docstr_tok: ["Check","if","the","given","job","name","is","running","and","heartbeating","correctly",".","Used","to","tell","if","scheduler","is","alive","."]
code: def job_running(self, job_runner_class: type[BaseJobRunner]):
      """
      Check if the given job name is running and heartbeating correctly.
  
      Used to tell if scheduler is alive.
      """
      recent = most_recent_job(job_runner_class.job_type)
      if not recent:
          return False
      return recent.is_alive()
  
imports: from __future__ import annotations
  import logging
  import os
  import socket
  import subprocess
  import threading
  import time
  from collections import deque
  from typing import TYPE_CHECKING
  from termcolor import colored
  from airflow.configuration import conf
  from airflow.executors import executor_constants
  from airflow.executors.executor_loader import ExecutorLoader
  from airflow.jobs.job import most_recent_job
  from airflow.jobs.scheduler_job_runner import SchedulerJobRunner
  from airflow.jobs.triggerer_job_runner import TriggererJobRunner
  from airflow.utils import db
  from airflow.utils.providers_configuration_loader import providers_configuration_loaded
label_desc: Use image node_id 11 for calling the StandaloneCommand obj's underlying member method code with example usage: obj.job_running(job_runner_class) and returns: recent, False