@mastra/inngest 0.16.1 → 0.17.0-alpha.0
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/CHANGELOG.md +13 -0
- package/dist/index.cjs +8 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @mastra/inngest
|
|
2
2
|
|
|
3
|
+
## 0.17.0-alpha.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Update peer dependencies to match core package version bump (0.21.2) ([#8941](https://github.com/mastra-ai/mastra/pull/8941))
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Support for custom resume labels mapping to step to be resumed ([#8941](https://github.com/mastra-ai/mastra/pull/8941))
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [[`c67ca32`](https://github.com/mastra-ai/mastra/commit/c67ca32e3c2cf69bfc146580770c720220ca44ac), [`dbc9e12`](https://github.com/mastra-ai/mastra/commit/dbc9e1216ba575ba59ead4afb727a01215f7de4f), [`99e41b9`](https://github.com/mastra-ai/mastra/commit/99e41b94957cdd25137d3ac12e94e8b21aa01b68), [`c28833c`](https://github.com/mastra-ai/mastra/commit/c28833c5b6d8e10eeffd7f7d39129d53b8bca240), [`f053e89`](https://github.com/mastra-ai/mastra/commit/f053e89160dbd0bd3333fc3492f68231b5c7c349), [`9a1a485`](https://github.com/mastra-ai/mastra/commit/9a1a4859b855e37239f652bf14b1ecd1029b8c4e), [`9257233`](https://github.com/mastra-ai/mastra/commit/9257233c4ffce09b2bedc2a9adbd70d7a83fa8e2), [`0f1a4c9`](https://github.com/mastra-ai/mastra/commit/0f1a4c984fb4b104b2f0b63ba18c9fa77f567700), [`2db6160`](https://github.com/mastra-ai/mastra/commit/2db6160e2022ff8827c15d30157e684683b934b5), [`8aeea37`](https://github.com/mastra-ai/mastra/commit/8aeea37efdde347c635a67fed56794943b7f74ec), [`02fe153`](https://github.com/mastra-ai/mastra/commit/02fe15351d6021d214da48ec982a0e9e4150bcee), [`74567b3`](https://github.com/mastra-ai/mastra/commit/74567b3d237ae3915cd0bca3cf55fa0a64e4e4a4), [`15a1733`](https://github.com/mastra-ai/mastra/commit/15a1733074cee8bd37370e1af34cd818e89fa7ac), [`fc2a774`](https://github.com/mastra-ai/mastra/commit/fc2a77468981aaddc3e77f83f0c4ad4a4af140da), [`4e08933`](https://github.com/mastra-ai/mastra/commit/4e08933625464dfde178347af5b6278fcf34188e)]:
|
|
14
|
+
- @mastra/core@0.21.2-alpha.0
|
|
15
|
+
|
|
3
16
|
## 0.16.1
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -123,6 +123,7 @@ var InngestRun = class extends workflows.Run {
|
|
|
123
123
|
context: {},
|
|
124
124
|
activePaths: [],
|
|
125
125
|
suspendedPaths: {},
|
|
126
|
+
resumeLabels: {},
|
|
126
127
|
waitingPaths: {},
|
|
127
128
|
timestamp: Date.now(),
|
|
128
129
|
status: "running"
|
|
@@ -357,6 +358,7 @@ var InngestWorkflow = class _InngestWorkflow extends workflows.Workflow {
|
|
|
357
358
|
waitingPaths: {},
|
|
358
359
|
serializedStepGraph: this.serializedStepGraph,
|
|
359
360
|
suspendedPaths: {},
|
|
361
|
+
resumeLabels: {},
|
|
360
362
|
result: void 0,
|
|
361
363
|
error: void 0,
|
|
362
364
|
// @ts-ignore
|
|
@@ -1176,8 +1178,11 @@ var InngestExecutionEngine = class extends workflows.DefaultExecutionEngine {
|
|
|
1176
1178
|
},
|
|
1177
1179
|
getInitData: () => stepResults?.input,
|
|
1178
1180
|
getStepResult: workflows.getStepResult.bind(this, stepResults),
|
|
1179
|
-
suspend: async (suspendPayload) => {
|
|
1181
|
+
suspend: async (suspendPayload, suspendOptions) => {
|
|
1180
1182
|
executionContext.suspendedPaths[step.id] = executionContext.executionPath;
|
|
1183
|
+
if (suspendOptions?.resumeLabel) {
|
|
1184
|
+
executionContext.resumeLabels[suspendOptions.resumeLabel] = step.id;
|
|
1185
|
+
}
|
|
1181
1186
|
suspended = { payload: suspendPayload };
|
|
1182
1187
|
},
|
|
1183
1188
|
bail: (result2) => {
|
|
@@ -1351,6 +1356,7 @@ var InngestExecutionEngine = class extends workflows.DefaultExecutionEngine {
|
|
|
1351
1356
|
context: stepResults,
|
|
1352
1357
|
activePaths: [],
|
|
1353
1358
|
suspendedPaths: executionContext.suspendedPaths,
|
|
1359
|
+
resumeLabels: executionContext.resumeLabels,
|
|
1354
1360
|
waitingPaths: {},
|
|
1355
1361
|
serializedStepGraph,
|
|
1356
1362
|
status: workflowStatus,
|
|
@@ -1485,6 +1491,7 @@ var InngestExecutionEngine = class extends workflows.DefaultExecutionEngine {
|
|
|
1485
1491
|
runId,
|
|
1486
1492
|
executionPath: [...executionContext.executionPath, index],
|
|
1487
1493
|
suspendedPaths: executionContext.suspendedPaths,
|
|
1494
|
+
resumeLabels: executionContext.resumeLabels,
|
|
1488
1495
|
retryConfig: executionContext.retryConfig,
|
|
1489
1496
|
executionSpan: executionContext.executionSpan,
|
|
1490
1497
|
state: executionContext.state
|