diff --git a/second-brain.yml b/second-brain.yml index ad4d9af4..69f6165e 100644 --- a/second-brain.yml +++ b/second-brain.yml @@ -103,6 +103,7 @@ services: - WEBPAGE_TEXT_WORKFLOW_ID=$WEBPAGE_TEXT_WORKFLOW_ID - SUPER_URL=$SUPER_URL - LOCAL_LLAMA=$LOCAL_LLAMA + - JARVIS_WORKERS=$JARVIS_WORKERS networks: sphinx-swarm: diff --git a/sphinx.yml b/sphinx.yml index f6db02cd..779aef53 100644 --- a/sphinx.yml +++ b/sphinx.yml @@ -75,6 +75,7 @@ services: - TRIBES_HOST=$TRIBES_HOST - SUPER_TOKEN=$SUPER_TOKEN - SUPER_URL=$SUPER_URL + - JARVIS_WORKERS=$JARVIS_WORKERS networks: sphinx-swarm: diff --git a/src/images/jarvis.rs b/src/images/jarvis.rs index 22c68465..2ee0a46a 100644 --- a/src/images/jarvis.rs +++ b/src/images/jarvis.rs @@ -225,6 +225,10 @@ fn jarvis( webpage_text_workflow_id )); } + if let Ok(jarvis_workers) = getenv("JARVIS_WORKERS") { + env.push(format!("WORKERS={}", jarvis_workers)); + } + Config { image: Some(format!("{}:{}", img, node.version)), hostname: Some(domain(&name)),