runstatus

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ComponentName = "run_status"
	RequestPort   = "request"
	ResponsePort  = "response"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component struct {
	module.Base
}

Component reads a durable run's progress straight from the step ledger in the execution-scoped State — the polling half of the run_start/run_status front-door pair.

func (*Component) GetInfo

func (t *Component) GetInfo() module.ComponentInfo

func (*Component) Handle

func (t *Component) Handle(ctx context.Context, handler module.Handler, port string, msg interface{}) module.Result

func (*Component) Instance

func (t *Component) Instance() module.Component

func (*Component) Ports

func (t *Component) Ports() []module.Port

type Context

type Context any

type Request

type Request struct {
	Context Context `json:"context" configurable:"true" title:"Context"`
	RunID   string  `json:"runID" required:"true" title:"Run ID" description:"The run id (returned by Start Run & Reply)"`
}

type Response

type Response struct {
	Context Context `json:"context,omitempty" configurable:"true" title:"Context"`
	RunID   string  `json:"runID" title:"Run ID"`
	// Found: the run has at least one ledger record. False = unknown run id
	// or the entry hasn't completed its first step yet.
	Found bool `json:"found" title:"Found"`
	// Complete: every emitted hop has a completion record and none failed.
	Complete bool `json:"complete" title:"Complete"`
	// Failed: at least one step recorded a terminal failure.
	Failed bool `json:"failed" title:"Failed"`
	// PendingSteps: hops durably emitted but not yet completed (the frontier).
	PendingSteps int    `json:"pendingSteps" title:"Pending Steps"`
	Steps        []Step `json:"steps,omitempty" title:"Steps"`
}

type Step

type Step struct {
	StepKey     string    `json:"stepKey" title:"Step Key"`
	Node        string    `json:"node" title:"Node"`
	Status      string    `json:"status" title:"Status"`
	Error       string    `json:"error,omitempty" title:"Error"`
	CompletedAt time.Time `json:"completedAt" title:"Completed At"`
}

Jump to

Keyboard shortcuts

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