@rivetkit/workflow-engine 2.3.3 → 2.3.5-rc.1

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.
@@ -1607,8 +1607,12 @@ async function flush(storage, driver, onHistoryUpdated, pendingDeletions) {
1607
1607
  });
1608
1608
  }
1609
1609
  if (writes.length > 0) {
1610
- for (const chunk of splitBatchWrites(writes)) {
1611
- await driver.batch(chunk);
1610
+ if (driver.atomicBatch) {
1611
+ await driver.batch(writes);
1612
+ } else {
1613
+ for (const chunk of splitBatchWrites(writes)) {
1614
+ await driver.batch(chunk);
1615
+ }
1612
1616
  }
1613
1617
  }
1614
1618
  if (pendingDeletions) {
@@ -4317,4 +4321,4 @@ export {
4317
4321
  runWorkflow,
4318
4322
  replayWorkflowFromStep
4319
4323
  };
4320
- //# sourceMappingURL=chunk-Z3WC5MXC.js.map
4324
+ //# sourceMappingURL=chunk-DTS4S7RT.js.map