trigger.dev 0.0.0-v3-canary-20240322092243 → 0.0.0-v3-canary-20240322110240
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -800,7 +800,7 @@ import invariant from "tiny-invariant";
|
|
|
800
800
|
import { z as z4 } from "zod";
|
|
801
801
|
|
|
802
802
|
// package.json
|
|
803
|
-
var version = "0.0.0-v3-canary-
|
|
803
|
+
var version = "0.0.0-v3-canary-20240322110240";
|
|
804
804
|
var dependencies = {
|
|
805
805
|
"@baselime/node-opentelemetry": "^0.4.6",
|
|
806
806
|
"@clack/prompts": "^0.7.0",
|
|
@@ -821,7 +821,7 @@ var dependencies = {
|
|
|
821
821
|
"@opentelemetry/sdk-trace-node": "^1.21.0",
|
|
822
822
|
"@opentelemetry/semantic-conventions": "^1.21.0",
|
|
823
823
|
"@traceloop/instrumentation-openai": "^0.3.9",
|
|
824
|
-
"@trigger.dev/core": "workspace:0.0.0-v3-canary-
|
|
824
|
+
"@trigger.dev/core": "workspace:0.0.0-v3-canary-20240322110240",
|
|
825
825
|
"@types/degit": "^2.8.3",
|
|
826
826
|
chalk: "^5.2.0",
|
|
827
827
|
chokidar: "^3.5.3",
|
|
@@ -4050,7 +4050,8 @@ var TaskRunProcess = class {
|
|
|
4050
4050
|
schema: workerToChildMessages,
|
|
4051
4051
|
sender: async (message) => {
|
|
4052
4052
|
if (this._child?.connected && !this._isBeingKilled && !this._child.killed) {
|
|
4053
|
-
this.
|
|
4053
|
+
logger.debug(`[${this.runId}] sending message to task run process`, { message });
|
|
4054
|
+
this._child.send(message);
|
|
4054
4055
|
}
|
|
4055
4056
|
}
|
|
4056
4057
|
});
|
|
@@ -4074,8 +4075,7 @@ var TaskRunProcess = class {
|
|
|
4074
4075
|
async initialize() {
|
|
4075
4076
|
logger.debug(`[${this.runId}] initializing task run process`, {
|
|
4076
4077
|
env: this.env,
|
|
4077
|
-
path: this.path
|
|
4078
|
-
processEnv: process.env
|
|
4078
|
+
path: this.path
|
|
4079
4079
|
});
|
|
4080
4080
|
this._child = fork(this.path, {
|
|
4081
4081
|
stdio: [
|
|
@@ -4135,10 +4135,13 @@ var TaskRunProcess = class {
|
|
|
4135
4135
|
return result;
|
|
4136
4136
|
}
|
|
4137
4137
|
taskRunCompletedNotification(completion, execution) {
|
|
4138
|
-
logger.debug(`[${this.runId}] task run completed notification`, { completion, execution });
|
|
4139
4138
|
if (!completion.ok && typeof completion.retry !== "undefined") {
|
|
4140
4139
|
return;
|
|
4141
4140
|
}
|
|
4141
|
+
if (execution.run.id === this.runId) {
|
|
4142
|
+
return;
|
|
4143
|
+
}
|
|
4144
|
+
logger.debug(`[${this.runId}] task run completed notification`, { completion, execution });
|
|
4142
4145
|
this._sender.send("TASK_RUN_COMPLETED_NOTIFICATION", {
|
|
4143
4146
|
completion,
|
|
4144
4147
|
execution
|