Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): shell snapshots release the database before decoding #17044

ClosedSunkenInTime(GitHub profile, opens in a new tab)wants to merge 3 commits intomain fromrefs/pull/17044/headopened View on GitHub

Showing 11 changed files with 105 additions and 13 deletions (loading 8).

x
0 of 11 viewed, 11 left
2 additions and 0 deletionsapps/server/integration/transferBudgetV2.integration.test.tsModified
View file
@@ -88,6 +88,8 @@
projections.getThreadSnapshotWindow(id, options).pipe(Effect.orDie),
getThreadShell: (id) => projections.getThreadShell(id).pipe(Effect.orDie),
getShellSnapshot: (options) => projections.getShellSnapshot(options).pipe(Effect.orDie),
+ readShellSnapshot: (options) =>
+ projections.readShellSnapshot(options).pipe(Effect.map(Effect.orDie), Effect.orDie),
streamStoredEventsFrom: (input) =>
sink.stream({ ...input, bounded: true }).pipe(Stream.orDie),
});
28 additions and 13 deletionsapps/server/src/orchestration-v2/Orchestrator.tsModified
View file
@@ -100,6 +100,7 @@
type ProjectionRecordFilter,
type ProjectionRecords,
type ProjectionCheckpointContext,
+ type ShellSnapshotOptions,
} from "./ProjectionStore.ts";
import type { ProviderAdapterV2Shape } from "./ProviderAdapter.ts";
import { ProviderAdapterRegistryV2 } from "./ProviderAdapterRegistry.ts";
@@ -319,11 +320,16 @@
OrchestratorV2Error
- readonly getShellSnapshot: (options?: {
- readonly location?: "active" | "archive";
- /** Background sweeps only: skips settled threads. */
- readonly unsettledOnly?: boolean;