pub(crate) async fn run(config: Config)Expand description
Top-level async entry point.
Connects to Postgres, runs migrations, spawns all tier orchestrators and the upload processor, starts the HTTP API, then waits for a shutdown signal (SIGTERM / ctrl-c).
Each tier runs as an independent tokio task — a crash in Tier 2 does not affect Tier 3. On shutdown, all tasks are aborted (graceful drain will be refined later).