schedule

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package schedule drives bounded reconciliation to a structural input fixpoint.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kind

type Kind uint8

Kind is the retained dependency classification of an invocation.

const (
	// Terminal means the invocation has no unresolved dependency.
	Terminal Kind = iota
	// Blocked means an input may still become available.
	Blocked
	// DependencyFailed means a required input failed.
	DependencyFailed
)

type NodeID

type NodeID = manifest.NamedResource

NodeID identifies a schedulable declaration.

type Result

type Result struct {
	Assessment assessment
}

Result retains the inputs and outcome of one execution.

type Scheduler

type Scheduler struct {
	// contains filtered or unexported fields
}

Scheduler owns execution lifetime and sorted successor admission.

func New

func New(tasks taskService, disp dispatcher) *Scheduler

New constructs a scheduler borrowing the invocation's bounded task service.

func (*Scheduler) OnArrival

func (s *Scheduler) OnArrival(id NodeID, runnable bool)

OnArrival admits a new runnable declaration through the existing event adapter. Existing executions observe changes through their retained input registrations.

func (*Scheduler) OnPublication

func (s *Scheduler) OnPublication()

OnPublication signals the structural boundary through existing publication events.

func (*Scheduler) Run

func (s *Scheduler) Run(ctx context.Context) error

Run drains work, delivers pending heads and settles retained unresolved assessments. Dispatch, assessment and task-service calls MUST run outside mu.

func (*Scheduler) Seed

func (s *Scheduler) Seed(ids []NodeID)

Seed admits initial declarations in deterministic order.

Jump to

Keyboard shortcuts

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