Skip to content

Commit ca9f96d

Browse files
authored
Add configuring engine pool using ZOO_ENGINE_POOL environment variable (#7950)
* Add configuring engine pool using ZOO_POOL environment variable * Rename to ZOO_ENGINE_POOL
1 parent 80bc2ab commit ca9f96d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.env.development

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ RUST_BACKTRACE=1
1414
PYO3_PYTHON=/usr/local/bin/python3
1515
ZOO_HOST=https://api.$VITE_KITTYCAD_BASE_DOMAIN
1616
#KITTYCAD_API_TOKEN=$VITE_KITTYCAD_API_TOKEN
17+
#ZOO_ENGINE_POOL=pr-1234

rust/kcl-lib/src/execution/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,12 +388,13 @@ impl ExecutorContext {
388388
/// Create a new default executor context.
389389
#[cfg(not(target_arch = "wasm32"))]
390390
pub async fn new(client: &kittycad::Client, settings: ExecutorSettings) -> Result<Self> {
391+
let pool = std::env::var("ZOO_ENGINE_POOL").ok();
391392
let (ws, _headers) = client
392393
.modeling()
393394
.commands_ws(
394395
None,
395396
None,
396-
None,
397+
pool,
397398
if settings.enable_ssao {
398399
Some(kittycad::types::PostEffectType::Ssao)
399400
} else {

0 commit comments

Comments
 (0)