Documentation
¶
Overview ¶
Package attemptstate helps Runtime Protocol workers converge after an optimistic-concurrency conflict without weakening fencing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Snapshot ¶
type Snapshot struct {
Version int64
Phase domain.AttemptPhase
}
Snapshot is the current fenced Attempt state returned by the control plane.
func Refresh ¶
func Refresh( ctx context.Context, client runtimev1.RuntimeControlServiceClient, identity *runtimev1.AttemptIdentity, timeout time.Duration, ) (Snapshot, error)
Refresh re-reads an Attempt through its fenced identity. The control plane validates tenant and fencing-token ownership, so a stale worker cannot use this helper to recover ownership after a newer attempt has been installed.
Click to show internal directories.
Click to hide internal directories.