0.3.15-pre.011-fix.001
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: crates/ksp-app-raw-transaction-ingest-desk/src/tauri.rs
|
||||
// version: 7
|
||||
// version: 8
|
||||
|
||||
//! Tauri runtime assembly for the KSP Raw Transaction Ingest desktop application.
|
||||
|
||||
@@ -186,6 +186,8 @@ async fn start_route(
|
||||
return std::result::Result::Ok(acknowledgement);
|
||||
}
|
||||
|
||||
const ROUTE_MONITORING_MIN_EMIT_INTERVAL_MS: u64 = 500;
|
||||
|
||||
async fn monitor_route_status(
|
||||
app: tauri::AppHandle,
|
||||
runtime: crate::RawIngestRouteRuntimeDto,
|
||||
@@ -223,6 +225,10 @@ async fn monitor_route_status(
|
||||
}
|
||||
let observed = snapshot.worker_snapshot().sequence();
|
||||
snapshot = source.wait_for_change(observed).await;
|
||||
if !snapshot.worker_snapshot().state().is_terminal() {
|
||||
tokio::time::sleep(std::time::Duration::from_millis(ROUTE_MONITORING_MIN_EMIT_INTERVAL_MS)).await;
|
||||
snapshot = source.current();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user