Skip to content

Document that deploy_component waits for restart: true and reports restart_completed - #638

Draft
kriszyp wants to merge 6 commits into
mainfrom
kris/2335-restart-completed
Draft

Document that deploy_component waits for restart: true and reports restart_completed#638
kriszyp wants to merge 6 commits into
mainfrom
kris/2335-restart-completed

Conversation

@kriszyp

@kriszyp kriszyp commented Aug 26, 2026

Copy link
Copy Markdown
Member

Documents the deploy_component restart behavior that HarperFast/harper#2341 changes: "restart": true now waits for the worker restart before responding, so a successful response means every worker thread is serving the new code. drop_component waits the same way.

The old behavior was undocumented and load-bearing for callers: the operation reported success while the rolling restart was still running, so a client acting on that success could be served by a worker that had never loaded the component (harper#2335).

For the human reviewer

  1. The version badges say v5.3.0, per Kris's call — the change ships in the next minor rather than a 5.2 patch. Per AGENTS.md this still gets re-checked at merge time.
  2. Placement. I put it in a new #### Restarting (restart) subsection under deploy_component, next to the existing credentials subsection, rather than expanding the one-line mention in the intro paragraph. The alternative is a shorter note inline; the subsection wins if the restart_completed semantics are worth spelling out for CI callers, which is the audience learn/developers/deploying-from-ci.mdx targets.

Verification

npm run format:write then npm run format:check — clean. Claims checked against the implementation: the awaited restart and its give-up conditions in components/operations.js and components/awaitRestart.ts, and the "rolling" path's replicated restart_service job (it does restart peers — an earlier draft of this text said it did not). An earlier revision of this PR documented a restart_completed response field; that field was dropped from #2341, and so from here.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds documentation for the restart parameter under the Deployment Operations section in reference/operations-api/operations.md, detailing the behavior of `

Comment thread reference/operations-api/operations.md Outdated
Comment thread reference/operations-api/operations.md Outdated
@github-actions
github-actions Bot temporarily deployed to pr-638 August 26, 2026 12:17 Inactive
@github-actions

Copy link
Copy Markdown

🚀 Preview Deployment

Your preview deployment is ready!

🔗 Preview URL: https://preview.harper-documentation.harperfabric.com/pr-638

This preview will update automatically when you push new commits.

@github-actions
github-actions Bot temporarily deployed to pr-638 August 26, 2026 12:26 Inactive
@github-actions

Copy link
Copy Markdown

🚀 Preview Deployment

Your preview deployment is ready!

🔗 Preview URL: https://preview.harper-documentation.harperfabric.com/pr-638

This preview will update automatically when you push new commits.

@github-actions

Copy link
Copy Markdown

🚀 Preview Deployment

Your preview deployment is ready!

🔗 Preview URL: https://preview.harper-documentation.harperfabric.com/pr-638

This preview will update automatically when you push new commits.

@github-actions
github-actions Bot temporarily deployed to pr-638 August 26, 2026 12:55 Inactive
@github-actions
github-actions Bot temporarily deployed to pr-638 August 27, 2026 15:06 Inactive
@github-actions

Copy link
Copy Markdown

🚀 Preview Deployment

Your preview deployment is ready!

🔗 Preview URL: https://preview.harper-documentation.harperfabric.com/pr-638

This preview will update automatically when you push new commits.

@github-actions

Copy link
Copy Markdown

🚀 Preview Deployment

Your preview deployment is ready!

🔗 Preview URL: https://preview.harper-documentation.harperfabric.com/pr-638

This preview will update automatically when you push new commits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant