Skip to content

Commit 2f90de2

Browse files
chore(server): clarify service activation retry marker
1 parent 156b44c commit 2f90de2

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

‎apps/server/src/cloud/bootService.ts‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -810,12 +810,7 @@ export const make = Effect.fn("cloud.boot_service.make")(function* (input: {
810810
yield* fs
811811
.makeDirectory(path.dirname(unitPath), { recursive: true })
812812
.pipe(Effect.mapError((cause) => new BootServiceInstallError({ cause })));
813-
// Written first, on every install: once the files below name the new
814-
// version, whatever is running is behind them. A started install removes
815-
// the marker after `activate`, and so do `restart` and the launcher when
816-
// it comes up on that version, so a failed start leaves `status`
817-
// reporting `restart-pending` and the next install repairs it instead
818-
// of calling itself current (#12197).
813+
// Files can match the new version even when activation fails; keep that install retryable.
819814
yield* fs.writeFileString(restartPendingPath, `${input.cliVersion}\n`, { mode: 0o600 });
820815
yield* writeDurably(
821816
statePath,

0 commit comments

Comments
 (0)