complete-status

command
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2026 License: MIT Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Complete Status

A noderun workflow demonstrating the two lifecycle event nodes:

inject → change → debug                 ← main branch
status (watching change) → debug        ← status observer
complete → change → debug               ← complete observer

Neither observer is wired to the main branch — the engine feeds them:

  • The status node receives a message every time a node in its scope changes state (running → ok → error). Here it is scoped to the change node only, so it prints two {"nodeId","status"} objects: one running, one ok.
  • The complete node fires once the injected message's downstream traversal has fully drained — the flow-level equivalent of "the work is done". Its branch prints main branch finished. It is scoped to all, and still fires exactly once: observer traversals are event-flagged, so their drains do not count as flow completions.

Observer messages carry recursion guards (fromStatus / fromComplete metadata), so observers cannot re-trigger themselves — and those same flags stop their traversal drains from re-firing complete nodes.

Run from the noderun module root:

go run ./examples/complete-status

Expected output (observer ordering may vary):

doing work
{"nodeId":"change-main","status":"running"}
{"nodeId":"change-main","status":"ok"}
main branch finished

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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