(status: "ok" | "failed")
| 281 | // A plugin_storage row binds ~9 values, so 300 rows exceed one |
| 282 | // 999-bound-variable statement budget and must span several batches. |
| 283 | const entries = (status: "ok" | "failed") => |
| 284 | Array.from({ length: 300 }, (_, index) => ({ |
| 285 | key: `batched-call-${String(index).padStart(3, "0")}`, |
| 286 | data: call({ |
| 287 | runId: "run-batched", |
| 288 | toolId: "browser", |
| 289 | status, |
| 290 | startedAt: new Date(Date.UTC(2026, 4, 29, 12, 0, index)).toISOString(), |
| 291 | }), |
| 292 | })); |
| 293 | |
| 294 | yield* executor.executionHistory.recordMany("org", entries("ok")); |
| 295 | const total = yield* executor.executionHistory.count({ |
no test coverage detected