diff --git a/.changeset/warm-keys-perform.md b/.changeset/warm-keys-perform.md new file mode 100644 index 0000000000..3394fabd29 --- /dev/null +++ b/.changeset/warm-keys-perform.md @@ -0,0 +1,5 @@ +--- +"trigger.dev": patch +--- + +Set parent PATH on forked worker processes diff --git a/packages/cli-v3/src/executions/taskRunProcess.ts b/packages/cli-v3/src/executions/taskRunProcess.ts index c7663c4ac5..a3cc070983 100644 --- a/packages/cli-v3/src/executions/taskRunProcess.ts +++ b/packages/cli-v3/src/executions/taskRunProcess.ts @@ -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`, {