Skip to content

Commit 456a93c

Browse files
committed
[Fix] raise dummy session-activity seed tx timeout to 120s
Under cross-arch arm64 TCG in the qemu-emulator-build CI job, the deleteMany + createMany batch for ~1500-2000 event rows is now exceeding the previously-set 30s Prisma interactive-transaction ceiling (observed 44.7s in run 25835455849). The transaction uses deterministic IDs and is idempotent, so a looser bound has no correctness downside; it only kicks in on the slow TCG path.
1 parent f2a0ce8 commit 456a93c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

apps/backend/src/lib/seed-dummy-data.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1636,10 +1636,10 @@ async function seedDummySessionActivityEvents(options: SessionActivityEventSeedO
16361636
});
16371637
}, {
16381638
// Under cross-arch arm64 TCG in the emulator qcow2 build, this batch
1639-
// takes ~10s; Prisma's default is 5s. Production (KVM/native) runs it
1640-
// in well under 1s, so the looser bound only kicks in when the DB is
1641-
// genuinely slow.
1642-
timeout: 30_000,
1639+
// has been observed to take 40-50s; Prisma's default is 5s. Production
1640+
// (KVM/native) runs it in well under 1s, so the looser bound only kicks
1641+
// in when the DB is genuinely slow.
1642+
timeout: 90_000,
16431643
});
16441644

16451645
if (clickhouseClient && clickhouseRows.length > 0) {

0 commit comments

Comments
 (0)