MCPcopy Create free account
hub / github.com/Cybergenik/hopper / taskGenerator

Method taskGenerator

node/node.go:144–153  ·  view source on GitHub ↗
(taskQ chan c.FTask)

Source from the content-addressed store, hash-verified

142}
143
144func (n *HopperNode) taskGenerator(taskQ chan c.FTask) {
145 for !n.killed() {
146 ok, ftask := n.getFTask()
147 if !ok || ftask.Die {
148 n.cancel()
149 log.Println("Node dying... ")
150 }
151 taskQ <- ftask
152 }
153}
154
155func Node(ctx context.Context, id uint64, target string, args string, raw bool, env string, stdin bool, master string) {
156 outDir := os.Getenv("HOPPER_OUT")

Callers 1

NodeFunction · 0.95

Calls 2

killedMethod · 0.95
getFTaskMethod · 0.95

Tested by

no test coverage detected