ignore errors on the modeling cmds that are only for the artifact graph

Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
Jess Frazelle
2025-04-04 16:07:48 -07:00
parent f6ffb4a01e
commit db62c1962d
10 changed files with 103 additions and 44 deletions

View File

@ -24,6 +24,7 @@ pub struct EngineConnection {
batch_end: Arc<RwLock<IndexMap<uuid::Uuid, (WebSocketRequest, kcl_lib::SourceRange)>>>,
core_test: Arc<RwLock<String>>,
execution_kind: Arc<RwLock<ExecutionKind>>,
ignore_failed_responses: Arc<RwLock<Vec<uuid::Uuid>>>,
/// The default planes for the scene.
default_planes: Arc<RwLock<Option<DefaultPlanes>>>,
stats: EngineStats,
@ -39,6 +40,7 @@ impl EngineConnection {
core_test: result,
execution_kind: Default::default(),
default_planes: Default::default(),
ignore_failed_responses: Default::default(),
stats: Default::default(),
})
}
@ -371,6 +373,10 @@ impl kcl_lib::EngineManager for EngineConnection {
Arc::new(RwLock::new(IndexMap::new()))
}
fn ignore_failed_responses(&self) -> Arc<RwLock<Vec<uuid::Uuid>>> {
self.ignore_failed_responses.clone()
}
fn stats(&self) -> &EngineStats {
&self.stats
}