fix(cli): recover unresponsive service restarts
This commit is contained in:
parent
a149a61a89
commit
69d3f7d0d9
13 changed files with 378 additions and 50 deletions
4
packages/docs/build/client.mdx
vendored
4
packages/docs/build/client.mdx
vendored
|
|
@ -115,6 +115,10 @@ Node application:
|
|||
a process.
|
||||
- `Service.start()` reuses a compatible service or starts one when needed.
|
||||
- `Service.stop()` stops the registered service.
|
||||
- `Service.restart()` explicitly replaces the registered service, including
|
||||
signaling an unchanged registered PID that no longer answers health checks.
|
||||
Reserve it for deliberate user recovery; automatic reconnect should use
|
||||
`Service.start()` to avoid the narrow stale-PID reuse risk.
|
||||
- `Service.headers(endpoint)` creates the authentication headers for a client.
|
||||
|
||||
```sh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue