Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions 5 .changeset/lovely-coats-draw.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@trigger.dev/core": patch
---

fix: prevent ERR_IPC_CHANNEL_CLOSED errors from causing an unhandled exception on TaskRunProcess
5 changes: 5 additions & 0 deletions 5 packages/cli-v3/src/executions/taskRunProcess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ export class TaskRunProcess {
});

this._child.on("exit", this.#handleExit.bind(this));
this._child.on("error", this.#handleError.bind(this));
this._child.stdout?.on("data", this.#handleLog.bind(this));
this._child.stderr?.on("data", this.#handleStdErr.bind(this));

Expand Down Expand Up @@ -321,6 +322,10 @@ export class TaskRunProcess {
this._ipc?.send("RESOLVE_WAITPOINT", { waitpoint });
}

#handleError(error: Error) {
logger.debug("child process error", { error, pid: this.pid });
}

async #handleExit(code: number | null, signal: NodeJS.Signals | null) {
logger.debug("handling child exit", { code, signal, pid: this.pid });

Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.