Scheduler/Webserver should never use Internal API, so calling any method decorated with internal_api_call should still execute them locally
#
#
"""Internal API command."""
from __future__ import annotations
import logging
import os
import signal
import subprocess
import sys
import textwrap
from contextlib import suppress
from tempfile import gettempdir
from time import sleep
import daemon
import psutil
from daemon.pidfile import TimeoutPIDLockFile
from flask import Flask
from flask_appbuilder import SQLA
from flask_caching import Cache
from flask_wtf.csrf import CSRFProtect
from lockfile.pidlockfile import read_pid_from_pidfile
from sqlalchemy.engine.url import make_url
from airflow import settings
from airflow.cli.commands.webserver_command import GunicornMonitor
from airflow.configuration import conf