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 ¶
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
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"`
}
Click to show internal directories.
Click to hide internal directories.