Documentation
¶
Overview ¶
Package wait contains the distributed wait node: it durably parks messages until a shared notify signal reaches its target count.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Signal string `json:"signal"`
TargetCount interface{} `json:"targetCount"`
TimeoutSeconds interface{} `json:"timeoutSeconds"`
MergeMode string `json:"mergeMode"`
PollIntervalMS interface{} `json:"pollIntervalMs"`
}
Config holds the wait node configuration.
type Node ¶
Node parks and releases distributed waiters.
func (*Node) Activate ¶
Activate starts the node's single lifecycle-managed poller. Parking never creates a goroutine per message; this cancellable poller is what makes restart-recovered and cross-runner waiters observable to the flow.
func (*Node) Execute ¶
func (n *Node) Execute(ctx context.Context, input nodestore.MessageInterface) (nodestore.MessageInterface, error)
Execute evaluates the signal and target count, then persists the whole message as a waiter. It returns nil immediately: the message is parked in the coordination store, not held in this traversal goroutine.
func (*Node) Stop ¶
Stop cancels the poller. Parked rows deliberately remain in the durable store so a later deploy/restart can resume them.