@rivetkit/workflow-engine 2.3.4 → 2.3.5
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/dist/tsup/{chunk-Z3WC5MXC.js → chunk-DTS4S7RT.js} +7 -3
- package/dist/tsup/chunk-DTS4S7RT.js.map +1 -0
- package/dist/tsup/{chunk-OCUQRGRS.cjs → chunk-KLHCG2KY.cjs} +7 -3
- package/dist/tsup/chunk-KLHCG2KY.cjs.map +1 -0
- package/dist/tsup/index.cjs +2 -2
- package/dist/tsup/index.d.cts +5 -0
- package/dist/tsup/index.d.ts +5 -0
- package/dist/tsup/index.js +1 -1
- package/dist/tsup/testing.cjs +23 -23
- package/dist/tsup/testing.js +1 -1
- package/package.json +1 -1
- package/src/driver.ts +6 -0
- package/src/storage.ts +6 -2
- package/dist/tsup/chunk-OCUQRGRS.cjs.map +0 -1
- package/dist/tsup/chunk-Z3WC5MXC.js.map +0 -1
|
@@ -1607,8 +1607,12 @@ async function flush(storage, driver, onHistoryUpdated, pendingDeletions) {
|
|
|
1607
1607
|
});
|
|
1608
1608
|
}
|
|
1609
1609
|
if (writes.length > 0) {
|
|
1610
|
-
|
|
1611
|
-
await driver.batch(
|
|
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-
|
|
4324
|
+
//# sourceMappingURL=chunk-DTS4S7RT.js.map
|