fix(duckdb): add worker process isolation
This commit is contained in:
1 parent
6529f22fed
commit
454457f191
26 files changed
+1694
-14
No files matched your search
@@ -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() });
|
||||
|
||||
Reference in new issue
Block a user