Skip to content

Commit 4194bce

Browse files
authored
Forked worker processes now inherit PATH from parent (#1448)
* set PATH when forking * add changeset
1 parent da08e50 commit 4194bce

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/warm-keys-perform.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"trigger.dev": patch
3+
---
4+
5+
Set parent PATH on forked worker processes

packages/cli-v3/src/executions/taskRunProcess.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ export class TaskRunProcess {
123123
OTEL_IMPORT_HOOK_INCLUDES: workerManifest.otelImportHook?.include?.join(","),
124124
// TODO: this will probably need to use something different for bun (maybe --preload?)
125125
NODE_OPTIONS: execOptionsForRuntime(workerManifest.runtime, workerManifest),
126+
PATH: process.env.PATH,
126127
};
127128

128129
logger.debug(`[${this.runId}] initializing task run process`, {

0 commit comments

Comments
 (0)