Forked worker processes now inherit PATH from parent (#1448)
* set PATH when forking * add changeset
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"trigger.dev": patch
|
||||
---
|
||||
|
||||
Set parent PATH on forked worker processes
|
||||
@@ -123,6 +123,7 @@ export class TaskRunProcess {
|
||||
OTEL_IMPORT_HOOK_INCLUDES: workerManifest.otelImportHook?.include?.join(","),
|
||||
// TODO: this will probably need to use something different for bun (maybe --preload?)
|
||||
NODE_OPTIONS: execOptionsForRuntime(workerManifest.runtime, workerManifest),
|
||||
PATH: process.env.PATH,
|
||||
};
|
||||
|
||||
logger.debug(`[${this.runId}] initializing task run process`, {
|
||||
|
||||
Reference in New Issue
Block a user