Fix training start 3
This commit is contained in:
@@ -41,7 +41,7 @@ async def lifespan(app: FastAPI):
|
||||
try:
|
||||
# Initialize database
|
||||
logger.info("Initializing database connection")
|
||||
initialize_training_database()
|
||||
await initialize_training_database()
|
||||
logger.info("Database initialized successfully")
|
||||
|
||||
# Initialize messaging
|
||||
@@ -81,7 +81,7 @@ async def lifespan(app: FastAPI):
|
||||
logger.info("Messaging cleanup completed")
|
||||
|
||||
# Close database connections
|
||||
cleanup_training_database()
|
||||
await cleanup_training_database()
|
||||
logger.info("Database connections closed")
|
||||
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user