Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): slow SQLite work no longer forces clients to reconnect #19211

Closedt3dotgg(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromt3/sqlite-workeropened View on GitHub

Showing 7 changed files with 50 additions and 2 deletions (loading 4).

x
0 of 7 viewed, 7 left
1 addition and 1 deletionapps/server/src/orchestration-v2/FoundationPersistence.test.tsModified
View file
@@ -2922,7 +2922,7 @@
assert.equal(reclaimed.value.attemptCount, 2);
yield* outbox.succeed({ effectId: reclaimed.value.id, workerId: "recovery-worker" });
- }),
+ }).pipe(Effect.provide(layerIsolatedOutbox)),
it.effect("atomically cancels stale runs and their process-bound effects", () =>
48 additions and 0 deletionsapps/server/src/provider/Drivers/antigravityUsageReader.test.tsModified
View file
@@ -1,5 +1,6 @@
// @effect-diagnostics-next-line nodeBuiltinImport:off - Effect's File.Info has no ctime or sub-millisecond mtime, which the cache tests compare.
import * as NodeFSP from "node:fs/promises";
+import * as NodeWorkerThreads from "node:worker_threads";
​
import * as NodeServices from "@effect/platform-node/NodeServices";
import { assert, describe, it } from "@effect/vitest";
@@ -10,6 +11,7 @@
import * as Layer from "effect/Layer";
import * as Path from "effect/Path";
import * as SqlClient from "effect/sql/SqlClient";
+import { vi } from "vite-plus/test";
​
import { makeAntigravityUsageCache, readAntigravityUsage } from "./antigravityUsageReader.ts";
​
@@ -72,6 +74,52 @@