This commit is contained in:
florian committed 2026-10-11 17:11:03 +02:00
1 parent 85d6a552c6
commit 7af116d38d
2 files changed
+20 -17

No files matched your search

+14 -12
View File
@@ -1,20 +1,22 @@
from fastapi import FastAPI, Depends, HTTPException, Request
import asyncio
import signal
from contextlib import asynccontextmanager
import uvicorn
from aio_pika.exceptions import AMQPException
from fastapi import Depends, FastAPI, HTTPException, Request
from fastapi.responses import JSONResponse
from fastapi.security.api_key import APIKeyHeader
from starlette.exceptions import HTTPException as StarletteHTTPException
from pydantic import BaseModel, Field
from validator import verify_api_key
from db_module import get_db, create_connection_pool, close_connection_pool, start_healthcheck_thread
from simple_logger_handler import setup_logger, LOG_LEVEL
from rabbitmq_handler import RabbitMQConsumer
import uvicorn
from contextlib import asynccontextmanager
import signal
from starlette.exceptions import HTTPException as StarletteHTTPException
from db_module import close_connection_pool, create_connection_pool, get_db, start_healthcheck_thread
from metrics_server import REQUEST_COUNTER
import asyncio
from uvicorn_logger_config import LOGGING_CONFIG
from rabbitmq_handler import RabbitMQConsumer
from secret_manager import cleanup_secret_files
from aio_pika.exceptions import AMQPException
from simple_logger_handler import LOG_LEVEL, setup_logger
from uvicorn_logger_config import LOGGING_CONFIG
from validator import verify_api_key
logger = setup_logger(__name__)
api_key_header_internal = APIKeyHeader(name="X-API-Key-Internal")
+6 -5
View File
@@ -1,13 +1,14 @@
import asyncio
import json
import os
import weakref
from urllib.parse import quote
import aio_pika
from aio_pika.exceptions import AMQPException
from secret_manager import return_credentials
import os
from simple_logger_handler import setup_logger
import json
import signal
from urllib.parse import quote
import weakref
logger = setup_logger(__name__)