Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(usage-limit): recover gracefully when a subscription runs out #11215

Closedsaphid(GitHub profile, opens in a new tab)wants to merge 4 commits intomain fromrefs/pull/11215/headopened View on GitHub

Showing 39 changed files with 21 additions and 0 deletions (loading 36).

x
0 of 39 viewed, 39 left
7 additions and 0 deletionsapps/server/integration/OrchestrationEngineHarness.integration.tsModified
View file
@@ -67,6 +67,7 @@
} from "../src/orchestration/Services/OrchestrationEngine.ts";
import { ThreadDeletionReactor } from "../src/orchestration/Services/ThreadDeletionReactor.ts";
import * as ThreadSettlementReactor from "../src/orchestration/ThreadSettlementReactor.ts";
+import * as UsageLimitResumeReactor from "../src/orchestration/UsageLimitResumeReactor.ts";
import * as PullRequestSyncReactor from "../src/orchestration/PullRequestSyncReactor.ts";
import * as ThreadPullRequestReactor from "../src/orchestration/ThreadPullRequestReactor.ts";
import { OrchestrationReactor } from "../src/orchestration/Services/OrchestrationReactor.ts";
@@ -405,6 +406,12 @@
drain: Effect.void,
}),
+ Layer.provideMerge(
+ Layer.succeed(UsageLimitResumeReactor.UsageLimitResumeReactor, {
+ start: () => Effect.void,
+ drain: Effect.void,
+ }),
+ ),
Layer.provideMerge(
Layer.succeed(PullRequestSyncReactor.PullRequestSyncReactor, {
start: () => Effect.void,
11 additions and 0 deletionsapps/server/src/orchestration/Layers/OrchestrationReactor.test.tsModified
View file
@@ -10,6 +10,7 @@
import { ProviderRuntimeIngestionService } from "../Services/ProviderRuntimeIngestion.ts";
import { ThreadDeletionReactor } from "../Services/ThreadDeletionReactor.ts";
import * as ThreadSettlementReactor from "../ThreadSettlementReactor.ts";