Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): explain background wait registration timeouts #33658

Openvoltcrash(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/33658/headopened View on GitHub

Showing 2 changed files with 36 additions and 6 deletions.

x
0 of 2 viewed, 2 left
31 additions and 4 deletionsapps/server/src/orchestration-v2/ThreadManagementService.test.tsModified
View file
@@ -16,6 +16,7 @@
RunId,
ThreadId,
} from "@t3tools/contracts";
+import * as Cause from "effect/Cause";
import * as Deferred from "effect/Deferred";
import * as DateTime from "effect/DateTime";
import * as Duration from "effect/Duration";
@@ -738,6 +739,8 @@
"no-match-clear",
"no-session",
"unsupported-runtime",
+ "runtime-failed",
+ "timed-out",
] as const)(
"marks background work awaited on the thread's active provider thread with state %s",
(state) =>
@@ -768,6 +771,11 @@
updatedAt: now,
const calls: Array<{ providerThreadId: ProviderThreadId; awaited: boolean }> = [];
+ const started = yield* Deferred.make<void>();
+ const providerFailure = new ProviderAdapter.ProviderAdapterProtocolError({
+ driver,
+ detail: "Background task registration failed",
+ });
const runtime = {
driver,