Repository navigation
controller: replace Reconcile with explicit Suspend and Resume - #536
Merged
Merged
Conversation
The server calls Suspend or Resume instead of setting the task's phase for Reconcile to read. The reconciler no longer writes the phase; the server decides it. ReconcileDelete becomes Delete. Fixes google#534.
Describe the explicit Suspend/Resume/Delete flow, and list substratetest, which the server and CLI tests have used since google#532.
Collaborator
Author
janetkuo
approved these changes
Oct 30, 2026
janetkuo
left a comment
Member
There was a problem hiding this comment.
lgtm. SuspendTask stores nothing on failure so a stored Pending/Failed doesn't hide the actor's live state, but a failed resume of an existing actor stores Pending/Failed and hides its Suspended state until the next successful call. This can be addressed in a follow up if needed.
Member
|
The function naming is good too |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #534.
Handlers no longer set
task.Status.Phaseto tell the reconciler what to do (#515).TaskReconciler.Reconcileis replaced by explicitSuspendandResume, which shareensureSubstrateResources(atespace, template, actor).ReconcileDeleteis renamedDelete.CreateTaskcallsSuspend, so starting suspended is an explicit step.recordFailurestoresPendingfor a transient error andFailedotherwise. The issue leftPending/Failedto the reconciler; here only the server sets the phase.TestServer_SuccessClearsStoredFailure).mainshowed the same Substrate calls, gRPC codes, responses and stored status.AGENTS.mdand the substrate skill describe the new flow. They also fix text left stale by server: remove the Reconciler interface #532: the server and CLI tests usesubstratetest.