@mastra/inngest 1.0.1 → 1.0.2-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 CHANGED
@@ -1,5 +1,14 @@
1
1
  # @mastra/inngest
2
2
 
3
+ ## 1.0.2-alpha.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix long running steps causing inngest workflow to fail ([#12522](https://github.com/mastra-ai/mastra/pull/12522))
8
+
9
+ - Updated dependencies [[`e6fc281`](https://github.com/mastra-ai/mastra/commit/e6fc281896a3584e9e06465b356a44fe7faade65), [`97be6c8`](https://github.com/mastra-ai/mastra/commit/97be6c8963130fca8a664fcf99d7b3a38e463595), [`5fe1fe0`](https://github.com/mastra-ai/mastra/commit/5fe1fe0109faf2c87db34b725d8a4571a594f80e), [`f6673b8`](https://github.com/mastra-ai/mastra/commit/f6673b893b65b7d273ad25ead42e990704cc1e17), [`cd6be8a`](https://github.com/mastra-ai/mastra/commit/cd6be8ad32741cd41cabf508355bb31b71e8a5bd), [`9eb4e8e`](https://github.com/mastra-ai/mastra/commit/9eb4e8e39efbdcfff7a40ff2ce07ce2714c65fa8), [`aa37c84`](https://github.com/mastra-ai/mastra/commit/aa37c84d29b7db68c72517337932ef486c316275), [`47eba72`](https://github.com/mastra-ai/mastra/commit/47eba72f0397d0d14fbe324b97940c3d55e5a525)]:
10
+ - @mastra/core@1.2.0-alpha.0
11
+
3
12
  ## 1.0.1
4
13
 
5
14
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -689,7 +689,11 @@ var InngestRun = class extends workflows.Run {
689
689
  );
690
690
  }
691
691
  if (runs?.[0]?.status === "Completed" && runs?.[0]?.event_id === eventId) {
692
- return runs[0];
692
+ if (runs?.[0]?.output?.runId !== void 0) {
693
+ return runs[0];
694
+ }
695
+ await new Promise((resolve) => setTimeout(resolve, 1e3 + Math.random() * 1e3));
696
+ continue;
693
697
  }
694
698
  if (runs?.[0]?.status === "Failed") {
695
699
  const snapshot = await workflowsStore?.loadWorkflowSnapshot({