executionstate

package
v0.0.0-...-8d0dba2 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package executionstate admits worktree execution only after both the lease and resources retained after an interrupted execution have been checked.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Acquire

func Acquire(worktree string, owner execution.Owner, opts ...execution.Option) (*execution.Lease, error)

Acquire reserves the worktree before inspecting resources left by interrupted execution. Refusal leaves the previous execution snapshots intact and removes the rejected contender's new ownership record.

func CheckIdle

func CheckIdle(worktree string) error

CheckIdle is read-only. Call it while holding the execution lease when its result will authorize mutation. An idle daemon with separate control metadata does not own execution resources; its active engine must hold the lease.

Types

This section is empty.

Jump to

Keyboard shortcuts

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