class_docstr: Stores and caches configuration for Internal API.
docstr: Block current component from using Internal API.
  
  All methods decorated with internal_api_call will always be executed locally.
  This mode is needed for "trusted" components like Scheduler, Webserver or Internal Api server.
docstr_tok: ["Block","current","component","from","using","Internal","API",".","All","methods","decorated","with","internal_api_call","will","always","be","executed","locally",".","This","mode","is","needed","for","``","trusted","''","components","like","Scheduler",",","Webserver","or","Internal","Api","server","."]
code: def force_database_direct_access():
      """
      Block current component from using Internal API.
  
      All methods decorated with internal_api_call will always be executed locally.
      This mode is needed for "trusted" components like Scheduler, Webserver or Internal Api server.
      """
      InternalApiConfig._initialized = True
      InternalApiConfig._use_internal_api = False
  
file_path: airflow/airflow/api_internal/internal_api_call.py
imports: from __future__ import annotations
  import inspect
  import json
  from functools import wraps
  from typing import Callable, TypeVar
  import requests
  from airflow.configuration import conf
  from airflow.exceptions import AirflowConfigException, AirflowException
  from airflow.settings import _ENABLE_AIP_44
  from airflow.typing_compat import ParamSpec
label_desc: Use image node_id 1 for calling the InternalApiConfig obj's underlying member method code with example usage: obj.force_database_direct_access() without return types