fix(duckdb): add worker process isolation

This commit is contained in:
miracle authored and GitHub committed 2026-07-04 23:43:22 +08:00
1 parent 6529f22fed
commit 454457f191
26 files changed
+1694 -14

No files matched your search

+5 -3
View File
@@ -652,15 +652,17 @@ pub fn run() {
);
let state = if let Some(agent_dir) = agent_dir {
Arc::new(AppState::new_with_plugin_and_agent_dir_and_app_version(
AppState::new_with_plugin_and_agent_dir_and_app_version(
storage,
plugin_dir,
agent_dir,
env!("CARGO_PKG_VERSION"),
))
)
} else {
Arc::new(AppState::new_with_plugin_dir_and_app_version(storage, plugin_dir, env!("CARGO_PKG_VERSION")))
AppState::new_with_plugin_dir_and_app_version(storage, plugin_dir, env!("CARGO_PKG_VERSION"))
};
state.set_duckdb_worker_process_isolation_enabled(desktop_settings.duckdb_worker_process_isolation);
let state = Arc::new(state);
app.manage(state.clone());
commands::redis_pubsub_server::start_pubsub_server(state.clone());
app.manage(commands::saved_sql::SavedSqlStorageState { data_dir: data_dir.clone() });