attemptstate

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

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

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.

func (Snapshot) Settled

func (s Snapshot) Settled() bool

Settled reports whether another control-plane actor has already made the Attempt terminal or requested cancellation. A worker must not overwrite either state while converging an older mutation.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL