Fully Automated - 100% Backpressure - Pipeline runner ๐Ÿƒ for AI workflows. ๐Ÿš€

Commit a4a7bc43

a4a7bc436093Merged

Scott Nixon <[email protected]> ยท 9 months ago ยท 4 files ยท ~4 modified

Description

Fix web server issues: SQLite rwc mode, bind error msg, cleanup

  • Add ?mode=rwc to SQLite URL so DB is created if missing
  • Improve panic message when port is already in use
  • Fix lifetime issue with current_dir() temporary in terminal handler
  • Remove dead load_initial_documents function and unused imports

Details

Commit
a4a7bc436093
Parent
2570bf8b3a8c

crates/attractor-web/src/main.rsmodifiedView file

@@ -64,7 +64,9 @@
6464 .with_state(leptos_options);
6565
6666 tracing::info!("listening on http://{}", &addr);
67- let listener = tokio::net::TcpListener::bind(&addr).await.unwrap();
67+ let listener = tokio::net::TcpListener::bind(&addr).await.unwrap_or_else(|e| {
68+ panic!("Failed to bind to {addr}: {e}. Is another instance already running?");
69+ });
6870 let app = app.into_make_service();
6971 axum::serve(listener, app).await.unwrap();
7072 }