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
@@ -2,5 +2,15 @@
|
||||
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
||||
|
||||
fn main() {
|
||||
#[cfg(feature = "duckdb-bundled")]
|
||||
if std::env::args().any(|arg| arg == "--duckdb-worker") {
|
||||
let runtime = tokio::runtime::Runtime::new().expect("Failed to create DuckDB worker runtime");
|
||||
if let Err(err) = runtime.block_on(dbx_core::db::duckdb_worker_runtime::run_stdio_worker()) {
|
||||
eprintln!("DuckDB worker failed: {err}");
|
||||
std::process::exit(1);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
dbx_lib::run();
|
||||
}
|
||||
Reference in new issue
Block a user