Skip to content

launcherComputeHash

function launcherComputeHash(
workerArgv,
cwd?,
env?): Promise<string>;

Defined in: src/launcher/hash.ts:77

Compute the 16-hex-char tuple hash for a worker.

ParameterTypeDescription
workerArgvreadonly string[]The worker command and its arguments.
cwd?stringWorking directory; defaults to process.cwd().
env?Record<string, string | undefined>Process environment; defaults to process.env. Only keys starting with VGI_RPC_ participate in the hash — workers that differ only in unrelated env (PATH, HOME, …) intentionally share a worker.

Promise<string>