Repository navigation
docs: correct wedged-daemon recovery steps for vaadin-dev - #6684
Conversation
A wedged dev-loop daemon no longer self-heals on `shutdown`: every command, `shutdown` included, now waits a few seconds and exits `70` naming the pid to kill, instead of silently reaping the record and spawning a fresh daemon beside one still holding the lock. Update the Dev Loop CLI reference and the agentic-development tutorial to say so. Documents vaadin/flow#26782 (`0047af7471e61823df8289bb26beca99d16a2294`).
Preview DeploymentThis PR has been deployed for preview. URL: https://docs-preview-pr-6684.fly.dev Changed pagesAdded content is highlighted in green; removed content is marked in red on each page.
Built from 098b0ca |
vaadin-review-bot
left a comment
There was a problem hiding this comment.
Reviewed the changes — left 1 comment.
| Finding | |
|---|---|
| 💬 | The wedged-daemon entry opens with two sentences of mechanism and hides the fix at the end. |
|
|
||
| The daemon seems wedged:: | ||
| Run `shutdown`. Any later command starts a fresh daemon. | ||
| A killed daemon leaves a stale handshake, and every command but `status`/`ping` reaps it and spawns a fresh daemon without being asked. A daemon that's still running but not answering doesn't get reaped that way -- it still holds the daemon lock, so a fresh daemon can't come up beside it. Every command, `shutdown` included, waits a few seconds and then exits `70`, naming the pid to kill. Kill it yourself, then `start` spawns a fresh daemon. |
There was a problem hiding this comment.
💬 The wedged-daemon entry opens with two sentences of mechanism and hides the fix at the end.
The reader arrives at “The daemon seems wedged” with a hung loop and needs the action. The entry starts with a different case (a killed daemon) that does self-heal: “every command but status/ping reaps it and spawns a fresh daemon without being asked.” Read as the answer, that sends the reader off re-running commands and waiting.
Suggested order, action first:
Every command,
shutdownincluded, waits a few seconds and then exits70, naming the pid of the daemon. Kill that pid, thenstartspawns a fresh daemon.shutdowncan't help: a daemon that's running but not answering still holds the daemon lock, so no fresh daemon can come up beside it. (A daemon that was killed is different — it leaves a stale record that the next command clears by itself.)
dev-loop-cli.adoc:345 · clarity
There was a problem hiding this comment.
Reordered with the action first. The entry now opens with the hung-daemon case: every command, shutdown included, exits 70 and names the pid. Kill that pid, then start spawns a fresh daemon. Next comes why you have to kill it yourself (the hung daemon still holds the lock). The killed-daemon case, which recovers by itself, is now a separate paragraph after that.
Start the entry with what the reader sees and does: the exit code, the pid and killing it. The killed-daemon case, which recovers by itself, moves to a paragraph after it.
shutdown fails because the daemon doesn't answer. The lock is what stops a fresh daemon from starting beside it.
…6782-75c2f760f0ac756d # Conflicts: # articles/agentic-development/dev-loop-tutorial.adoc
Documentation for vaadin/flow#26782 by
@totally-not-ai[bot].Note
The source pull request is merged, so this documentation describes the final
shape of the change. Please review it and mark it ready for review.
Change categories: BEHAVIOR_CHANGE
articles/flow/configuration/live-reload/dev-loop-cli.adocshutdown/stop/restartcommand entry and the "daemon seems wedged" troubleshooting entry: a daemon that is alive but not answering no longer self-heals onshutdown— every command now waits a few seconds and exits70, naming the pid to kill, instead of reaping the record and spawning a fresh daemon beside one still holding the lock.Auto-generated by the Documentation Bot — review before merging.