diff --git a/example/example.json b/example/example.json index 1a2564f..9286654 100644 --- a/example/example.json +++ b/example/example.json @@ -33,7 +33,7 @@ { "id": 2, "name": "c", - "engine": "sleep", + "engine": "shell", "artifact": "example/script.sh", "args": [ "-e", diff --git a/orchestrator/node.go b/orchestrator/node.go index fcfa849..ed540c3 100644 --- a/orchestrator/node.go +++ b/orchestrator/node.go @@ -77,12 +77,14 @@ func (n *Node) Execute() error { // Now loop for the result for err == nil && n.State < Success { + fmt.Println(n) r, err := http.Get(fmt.Sprintf("%v/%v", url, id)) if err != nil { n.State = NotRunnable return err } defer r.Body.Close() + fmt.Println(r.Body) dec := json.NewDecoder(r.Body) if err := dec.Decode(&n); err != nil { n.State = Failure