mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 23:47:41 +08:00
refactor: unify database readiness lifecycle
This commit is contained in:
@@ -60,7 +60,6 @@ from app.runtime.topology import (
|
||||
UnsupportedProcessTopologyError,
|
||||
validate_process_topology,
|
||||
)
|
||||
from app.startup.database_initializer import prepare_database
|
||||
|
||||
setproctitle.setproctitle(settings.PROJECT_NAME)
|
||||
|
||||
@@ -189,7 +188,6 @@ def run_application() -> None:
|
||||
signal.signal(signal.SIGINT, signal_handler)
|
||||
|
||||
start_tray()
|
||||
prepare_database()
|
||||
run_api_server()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user