trigger.dev 3.0.0-beta.34 → 3.0.0-beta.36
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 +452 -200
- package/dist/index.js.map +1 -1
- package/dist/workers/dev/worker-facade.js +12 -3
- package/dist/workers/dev/worker-setup.js +1 -1
- package/dist/workers/prod/entry-point.js +528 -195
- package/dist/workers/prod/worker-facade.js +3 -17
- package/dist/workers/prod/worker-setup.js +1 -1
- package/package.json +4 -4
|
@@ -116,8 +116,8 @@ var zodIpc = new ZodIpcConnection({
|
|
|
116
116
|
_isRunning = false;
|
|
117
117
|
}
|
|
118
118
|
},
|
|
119
|
-
TASK_RUN_COMPLETED_NOTIFICATION: async ({ completion
|
|
120
|
-
prodRuntimeManager.resumeTask(completion
|
|
119
|
+
TASK_RUN_COMPLETED_NOTIFICATION: async ({ completion }) => {
|
|
120
|
+
prodRuntimeManager.resumeTask(completion);
|
|
121
121
|
},
|
|
122
122
|
WAIT_COMPLETED_NOTIFICATION: async () => {
|
|
123
123
|
prodRuntimeManager.resumeAfterDuration();
|
|
@@ -125,20 +125,6 @@ var zodIpc = new ZodIpcConnection({
|
|
|
125
125
|
CLEANUP: async ({ flush, kill }, sender) => {
|
|
126
126
|
if (kill) {
|
|
127
127
|
await tracingSDK.flush();
|
|
128
|
-
if (_execution) {
|
|
129
|
-
await sender.send("TASK_RUN_COMPLETED", {
|
|
130
|
-
execution: _execution,
|
|
131
|
-
result: {
|
|
132
|
-
ok: false,
|
|
133
|
-
id: _execution.run.id,
|
|
134
|
-
error: {
|
|
135
|
-
type: "INTERNAL_ERROR",
|
|
136
|
-
code: TaskRunErrorCodes.GRACEFUL_EXIT_TIMEOUT,
|
|
137
|
-
message: "Worker process killed while attempt in progress."
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
128
|
await sender.send("READY_TO_DISPOSE", void 0);
|
|
143
129
|
} else {
|
|
144
130
|
if (flush) {
|
|
@@ -163,7 +149,7 @@ zodIpc.send("TASKS_READY", { tasks: TASK_METADATA }).catch((err) => {
|
|
|
163
149
|
}
|
|
164
150
|
});
|
|
165
151
|
process.title = "trigger-prod-worker";
|
|
166
|
-
async function asyncHeartbeat(initialDelayInSeconds = 30, intervalInSeconds =
|
|
152
|
+
async function asyncHeartbeat(initialDelayInSeconds = 30, intervalInSeconds = 20) {
|
|
167
153
|
async function _doHeartbeat() {
|
|
168
154
|
while (true) {
|
|
169
155
|
if (_isRunning && _execution) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "trigger.dev",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.36",
|
|
4
4
|
"description": "A Command-Line Interface for Trigger.dev (v3) projects",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"typescript": "^5.3.3",
|
|
54
54
|
"vitest": "^0.34.4",
|
|
55
55
|
"xdg-app-paths": "^8.3.0",
|
|
56
|
-
"@trigger.dev/
|
|
57
|
-
"@trigger.dev/
|
|
56
|
+
"@trigger.dev/tsconfig": "0.0.0",
|
|
57
|
+
"@trigger.dev/core-apps": "3.0.0-beta.36"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@anatine/esbuild-decorators": "^0.2.19",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@opentelemetry/sdk-trace-base": "^1.22.0",
|
|
73
73
|
"@opentelemetry/sdk-trace-node": "^1.22.0",
|
|
74
74
|
"@opentelemetry/semantic-conventions": "^1.22.0",
|
|
75
|
-
"@trigger.dev/core": "3.0.0-beta.
|
|
75
|
+
"@trigger.dev/core": "3.0.0-beta.36",
|
|
76
76
|
"@types/degit": "^2.8.3",
|
|
77
77
|
"chalk": "^5.2.0",
|
|
78
78
|
"chokidar": "^3.5.3",
|