Skip to content

Commit

Permalink
Forked worker processes now inherit PATH from parent (#1448)
Browse files Browse the repository at this point in the history
* set PATH when forking

* add changeset
  • Loading branch information
nicktrn authored Nov 1, 2024
1 parent da08e50 commit 4194bce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/warm-keys-perform.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"trigger.dev": patch
---

Set parent PATH on forked worker processes
1 change: 1 addition & 0 deletions packages/cli-v3/src/executions/taskRunProcess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`, {
Expand Down

0 comments on commit 4194bce

Please sign in to comment.