MCPcopy Create free account
hub / github.com/The-Pocket/PocketFlow-Go / Run

Method Run

pocketflow.go:518–523  ·  view source on GitHub ↗
(ctx *PfContext)

Source from the content-addressed store, hash-verified

516}
517
518func (bn *BatchNode) Run(ctx *PfContext) (string, error) {
519 if len(bn.successors) > 0 {
520 logWarn("Node %T has successors, but Run() was called directly. Successors won't be executed by this call. Use Flow.Run() for orchestration.", bn)
521 }
522 return bn.InternalRun(ctx)
523}
524
525// InternalRun implements the retry logic at the item level within Exec.
526func (bn *BatchNode) InternalRun(ctx *PfContext) (string, error) {

Callers

nothing calls this directly

Calls 2

InternalRunMethod · 0.95
logWarnFunction · 0.85

Tested by

no test coverage detected