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.
@@ -119,8 +119,17 @@ var handler = new ZodMessageHandler({
119
119
  _isRunning = false;
120
120
  }
121
121
  },
122
- TASK_RUN_COMPLETED_NOTIFICATION: async ({ completion, execution }) => {
123
- devRuntimeManager.resumeTask(completion, execution);
122
+ TASK_RUN_COMPLETED_NOTIFICATION: async (payload) => {
123
+ switch (payload.version) {
124
+ case "v1": {
125
+ devRuntimeManager.resumeTask(payload.completion, payload.execution.run.id);
126
+ break;
127
+ }
128
+ case "v2": {
129
+ devRuntimeManager.resumeTask(payload.completion, payload.completion.id);
130
+ break;
131
+ }
132
+ }
124
133
  },
125
134
  CLEANUP: async ({ flush, kill }) => {
126
135
  if (kill) {
@@ -146,7 +155,7 @@ sender.send("TASKS_READY", { tasks: TASK_METADATA }).catch((err) => {
146
155
  }
147
156
  });
148
157
  process.title = "trigger-dev-worker";
149
- async function asyncHeartbeat(initialDelayInSeconds = 30, intervalInSeconds = 5) {
158
+ async function asyncHeartbeat(initialDelayInSeconds = 30, intervalInSeconds = 30) {
150
159
  async function _doHeartbeat() {
151
160
  while (true) {
152
161
  if (_isRunning && _execution) {
@@ -8,7 +8,7 @@ import { ZodMessageSender } from "@trigger.dev/core/v3/zodMessageHandler";
8
8
  import "source-map-support/register.js";
9
9
 
10
10
  // package.json
11
- var version = "3.0.0-beta.34";
11
+ var version = "3.0.0-beta.36";
12
12
 
13
13
  // src/workers/dev/worker-setup.ts
14
14
  __SETUP_IMPORTED_PROJECT_CONFIG__;