@mastra/inngest 1.9.0 → 1.9.1-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.
@@ -1523,6 +1523,7 @@ var InngestWorkflow = class extends _mastra_core_workflows.Workflow {
1523
1523
  function;
1524
1524
  cronFunction;
1525
1525
  flowControlConfig;
1526
+ functionRetries;
1526
1527
  cronConfig;
1527
1528
  /**
1528
1529
  * Optional override that lets a host (e.g. `createInngestAgent`) provide the
@@ -1533,7 +1534,7 @@ var InngestWorkflow = class extends _mastra_core_workflows.Workflow {
1533
1534
  */
1534
1535
  #pubsubFactory;
1535
1536
  constructor(params, inngest$1) {
1536
- const { concurrency, rateLimit, throttle, debounce, priority, cron, inputData, initialState, ...workflowParams } = params;
1537
+ const { concurrency, rateLimit, throttle, debounce, priority, retries, cron, inputData, initialState, ...workflowParams } = params;
1537
1538
  super(workflowParams);
1538
1539
  this.engineType = "inngest";
1539
1540
  const flowControlEntries = Object.entries({
@@ -1544,6 +1545,7 @@ var InngestWorkflow = class extends _mastra_core_workflows.Workflow {
1544
1545
  priority
1545
1546
  }).filter(([_, value]) => value !== void 0);
1546
1547
  this.flowControlConfig = flowControlEntries.length > 0 ? Object.fromEntries(flowControlEntries) : void 0;
1548
+ this.functionRetries = retries ?? 0;
1547
1549
  this.#mastra = params.mastra;
1548
1550
  this.inngest = inngest$1;
1549
1551
  if (cron) this.cronConfig = {
@@ -1667,7 +1669,7 @@ var InngestWorkflow = class extends _mastra_core_workflows.Workflow {
1667
1669
  if (this.cronFunction) return this.cronFunction;
1668
1670
  this.cronFunction = this.inngest.createFunction({
1669
1671
  id: `workflow.${this.id}.cron`,
1670
- retries: 0,
1672
+ retries: this.functionRetries,
1671
1673
  cancelOn: [{ event: `cancel.workflow.${this.id}` }],
1672
1674
  triggers: { cron: this.cronConfig?.cron ?? "" },
1673
1675
  ...this.flowControlConfig
@@ -1693,7 +1695,7 @@ var InngestWorkflow = class extends _mastra_core_workflows.Workflow {
1693
1695
  this.function = this.inngest.createFunction(
1694
1696
  {
1695
1697
  id: `workflow.${this.id}`,
1696
- retries: 0,
1698
+ retries: this.functionRetries,
1697
1699
  cancelOn: [{
1698
1700
  event: `cancel.workflow.${this.id}`,
1699
1701
  match: "data.runId"
@@ -2066,4 +2068,4 @@ Object.defineProperty(exports, "mergeResumeRequestContext", {
2066
2068
  }
2067
2069
  });
2068
2070
 
2069
- //# sourceMappingURL=connect-TUP1s9EP.cjs.map
2071
+ //# sourceMappingURL=connect-B5ShyCfq.cjs.map