Scheduler/Webserver should never use Internal API, so calling any method decorated with internal_api_call should still execute them locally
args.hostname + ":" + str(args.port),
            "--name",
            "airflow-internal-api",
            "--pid",
            pid_file,
            "--access-logfile",
            str(access_logfile),
            "--error-logfile",
            str(error_logfile),
        ]
        if args.access_logformat and args.access_logformat.strip():
            run_args += ["--access-logformat", str(args.access_logformat)]
        if args.daemon:
            run_args += ["--daemon"]
        run_args += ["airflow.cli.commands.internal_api_command:cached_app()"]
        
        
        
        
        run_args += ["--preload"]
        gunicorn_master_proc = None
        def kill_proc(signum, _):
            log.info("Received signal: %s. Closing gunicorn.", signum)
            gunicorn_master_proc.terminate()
            with suppress(TimeoutError):
                gunicorn_master_proc.wait(timeout=30)
            if gunicorn_master_proc.poll() is not None:
                gunicorn_master_proc.kill()
            sys.exit(0)
        def monitor_gunicorn(gunicorn_master_pid: int):