complete-status

command
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: MIT Imports: 12 Imported by: ? 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 the inject node on purpose: every observer traversal draining is itself a completion, so a scope-all complete node would re-fire for each status message too — scoping to the trigger keeps it exactly-once.

Both observer messages carry recursion guards (fromStatus / fromComplete metadata), so observers cannot re-trigger themselves.

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