migration removed
This commit is contained in:
@@ -76,23 +76,6 @@ async def lifespan(app: FastAPI):
|
||||
except Exception as e:
|
||||
logger.warning("Failed to load config from config.json: %s", e)
|
||||
|
||||
# Run data file to database migration
|
||||
try:
|
||||
from src.server.services.startup_migration import (
|
||||
ensure_migration_on_startup,
|
||||
)
|
||||
migration_result = await ensure_migration_on_startup()
|
||||
if migration_result:
|
||||
logger.info(
|
||||
"Data migration complete: %d migrated, %d skipped, %d failed",
|
||||
migration_result.migrated,
|
||||
migration_result.skipped,
|
||||
migration_result.failed
|
||||
)
|
||||
except Exception as e:
|
||||
logger.error("Data migration failed: %s", e, exc_info=True)
|
||||
# Continue startup - migration failure should not block app
|
||||
|
||||
# Initialize progress service with event subscription
|
||||
progress_service = get_progress_service()
|
||||
ws_service = get_websocket_service()
|
||||
|
||||
Reference in New Issue
Block a user