Skip to content

Commit da82707

Browse files
authored
chore(cubestore): Enviroment for sel worker process titile (#6637)
1 parent b57ddc3 commit da82707

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

rust/cubestore/cubestore/src/cluster/worker_pool.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,13 +299,17 @@ impl<
299299
}
300300
ctx += &self.name;
301301

302+
let title = std::env::var("CUBESTORE_SELECT_WORKER_TITLE")
303+
.ok()
304+
.unwrap_or("--sel-worker".to_string());
305+
302306
let handle = respawn(
303307
WorkerProcessArgs {
304308
args: args_rx,
305309
results: res_tx,
306310
processor: PhantomData::<P>::default(),
307311
},
308-
&["--sel-worker".to_string()],
312+
&[title],
309313
&[("CUBESTORE_LOG_CONTEXT".to_string(), ctx)],
310314
)?;
311315
Ok((args_tx, res_rx, handle))

0 commit comments

Comments
 (0)