Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): prepare restart continuations faster on shutdown #31807

MergedYash-Singh1(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/31807/headmerged by Yash-Singh1(GitHub profile, opens in a new tab) View on GitHub

Showing 7 changed files with 108 additions and 32 deletions (loading 4).

x
0 of 7 viewed, 7 left
22 additions and 0 deletionsapps/server/src/orchestration-v2/ProjectionRecovery.test.tsModified
View file
@@ -738,6 +738,28 @@
new Set(yield* projections.getRecoveryThreadIds("runtime")),
new Set([first, second, roster, prepared]),
+ assert.deepEqual(
+ new Set(yield* projections.getRecoveryThreadIds("restart-continuations")),
+ new Set([first, second, prepared]),
+ );
+ assert.deepEqual(
+ yield* projections.getRecoveryThreadIds("restart-continuations", { include: [] }),
+ [],
+ );
+ assert.deepEqual(
+ yield* projections.getRecoveryThreadIds("restart-continuations", {
+ exclude: ["project:recovery"],
+ }),
+ [],
+ );
+ assert.deepEqual(
+ new Set(
+ yield* projections.getRecoveryThreadIds("restart-continuations", {
+ include: ["project:recovery"],
+ }),
+ ),
+ new Set([first, second, prepared]),
+ );
const preparedState = yield* projections.getRuntimeRecoveryProjection(prepared);
assert.deepEqual(
preparedState.providerSessions.map((session) => session.id),