forked from boos/BoosAPI
feat: complete Rust backend UI compatibility
This commit is contained in:
@@ -25,6 +25,10 @@ async fn main() -> anyhow::Result<()> {
|
||||
|
||||
// Build app state
|
||||
let state = AppState::new(config.clone(), pool);
|
||||
if let Err(err) = state.comfyui.start().await {
|
||||
tracing::warn!(%err, "ComfyUI embedded process did not start");
|
||||
}
|
||||
let comfyui_process = state.comfyui.clone();
|
||||
|
||||
// Build router
|
||||
let app = boosapi::routes::build_router(state);
|
||||
@@ -40,6 +44,10 @@ async fn main() -> anyhow::Result<()> {
|
||||
.with_graceful_shutdown(shutdown_signal())
|
||||
.await?;
|
||||
|
||||
if let Err(err) = comfyui_process.stop().await {
|
||||
tracing::warn!(%err, "ComfyUI embedded process did not stop cleanly");
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user