mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-25 09:22:10 +00:00
fix(cli): log managed service lease loss
This commit is contained in:
parent
c3a6721de2
commit
643eed300d
1 changed files with 7 additions and 0 deletions
|
|
@ -194,6 +194,13 @@ const register = Effect.fnUntraced(function* (
|
|||
yield* current.pipe(
|
||||
Effect.filterOrFail(owns),
|
||||
Effect.repeat(Schedule.spaced("5 seconds")),
|
||||
Effect.tapError(() =>
|
||||
Effect.logWarning("managed service registration lost; shutting down", {
|
||||
serviceID: id,
|
||||
servicePID: process.pid,
|
||||
registration: file,
|
||||
}),
|
||||
),
|
||||
Effect.ignore,
|
||||
Effect.andThen(shutdown),
|
||||
Effect.forkScoped,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue