runstart

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: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ComponentName = "run_start"
	InPort        = "in"
	OutPort       = "out"
	StartedPort   = "started"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component struct{}

Component is the front door into durable execution. It starts a durable run, fires the chain on Out WITHOUT waiting for it (the emit returns as soon as the first hop is durably stored), and then emits {runID} on Started — which, wired back to an http_server response, gives the HTTP caller an immediate handle to poll while the run continues in the background, surviving pod restarts and migrating across replicas.

Place it on a CLASSIC (non-durable) node between the trigger and the durable chain. Downstream nodes need no labels: every hop emitted under the run identity rides the durable path.

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" description:"Payload to send into the run"`
}

type Started

type Started struct {
	Context Context `json:"context,omitempty" configurable:"true" title:"Context"`
	RunID   string  `json:"runID" title:"Run ID" description:"The run's id — check it with Run Status"`
}

Jump to

Keyboard shortcuts

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