RestartProjectOpencode host method + gRPC routing (#376) #392
Labels
No labels
backend
bug
chore
duplication
effort:complex
effort:medium
effort:trivial
enhancement
frontend
fullstack
priority:high
ready-for-agent
refactor
security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dries/ocman#392
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
#388 (spec), #376. Spec AD-7.
What to build
An owner-routed restart action for a project's managed instance.
hostsvc.HostmethodRestartProjectOpencode(ctx, req)that stops the tracked runtime instance (Runtime.Stop) then re-ensures (reusing the guardedEnsureProjectOpencodebody), returning the new endpoint/instance.hostsvc.Router.ForDirlikeEnsureProjectOpencode, so it executes on the host that owns the directory (local or remote).EnsureProjectOpencode); remote host + stubs implement it.Acceptance criteria
RestartProjectOpencodestops the current instance then launches a fresh one and returns its endpoint.ForDirand works for both local and remote native instances.Blocked by