Moved database module to separate library
This commit is contained in:
1 parent
9daf283a6e
commit
ba878f2ec4
3 files changed
+3
-131
No files matched your search
+2
-2
@@ -4,7 +4,7 @@ from github_api import find_package_version_with_tag as find_package_version_wit
|
||||
from dockerhub_api import find_package_version_with_tag as find_package_version_with_tag_dockerhub
|
||||
import uvicorn
|
||||
from contextlib import asynccontextmanager
|
||||
from db import get_db, create_connection_pool, close_connection_pool, start_healthcheck_thread
|
||||
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 send_notification import send_notification
|
||||
from metrics_server import REQUEST_COUNTER
|
||||
@@ -20,7 +20,7 @@ async def lifespan(app: FastAPI):
|
||||
logger.info("[App] Starting application...")
|
||||
|
||||
logger.info("[DB] Creating MySQL connection pool...")
|
||||
create_connection_pool()
|
||||
create_connection_pool("repositoryQueryPool")
|
||||
|
||||
start_healthcheck_thread()
|
||||
logger.info("[DB] MySQL healthcheck thread started.")
|
||||
|
||||
Reference in new issue
Block a user