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 Dispatcher ¶
type Dispatcher interface {
Dispatch(context.Context, NodeID, manifest.DrainLevel, Result) Result
// Sweep permits final classification only when the invocation's work is quiescent.
// A nonempty result MUST keep the structural boundary open.
Sweep(context.Context, bool) []NodeID
}
Dispatcher connects execution and publication delivery to the scheduler. SDK embedders implement this seam without exposing their input representation.
type Kind ¶ added in v0.7.3
type Kind uint8
Kind is the retained dependency classification of an invocation.
type Result ¶ added in v0.7.3
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 ¶
OnArrival admits a new runnable declaration through the existing event adapter. Existing executions observe changes through their retained input registrations.
func (*Scheduler) OnPublication ¶ added in v0.7.3
func (s *Scheduler) OnPublication()
OnPublication signals the structural boundary through existing publication events.
func (*Scheduler) Results ¶ added in v0.7.3
Results projects completed accepted assessments after Run has drained.