Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix: update all no longer runs agents twice or loses background work #19291

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 4 commits intomain fromrefs/pull/19291/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 46 changed files with 67 additions and 2 deletions (loading 43).

x
0 of 46 viewed, 46 left
1 addition and 1 deletionapps/desktop/src/backend/DesktopBackendManager.test.tsModified
View file
@@ -264,7 +264,7 @@
assert.equal(spawnedCommand.options.additionalFds?.fd5?.type, "output");
assert.equal(
Duration.toMillis(Duration.fromInputUnsafe(spawnedCommand.options.forceKillAfter)),
- 2_000,
+ 5_000,
​
assert.deepEqual(yield* decodeBootstrap(bootstrapJson), configWithObservability);
3 additions and 1 deletionapps/desktop/src/backend/DesktopBackendManager.tsModified
View file
@@ -65,7 +65,9 @@
const DEFAULT_BACKEND_READINESS_TIMEOUT = Duration.minutes(1);
const DEFAULT_BACKEND_READINESS_INTERVAL = Duration.millis(100);
const DEFAULT_BACKEND_READINESS_REQUEST_TIMEOUT = Duration.seconds(1);
-const DEFAULT_BACKEND_TERMINATE_GRACE = Duration.seconds(2);
+// Same as the service launcher. A killed backend leaves its agents running,
+// and a busy one needs a few seconds to stop every provider session.
+const DEFAULT_BACKEND_TERMINATE_GRACE = Duration.seconds(5);
const DEFAULT_BACKEND_OUTPUT_DRAIN_TIMEOUT = Duration.seconds(5);
const BACKEND_READINESS_PATH = "/.well-known/t3/environment";
const { logWarning: logBackendProcessWarning } =
63 additions and 0 deletionsapps/desktop/src/updates/DesktopUpdates.test.tsModified
View file
@@ -652,6 +652,67 @@
).pipe(Effect.provide(Layer.merge(TestClock.layer(), harness.layer)));