Fixed input

This commit is contained in:
Travis Reeder
2017-06-21 11:59:38 -07:00
parent 26d3ba2420
commit 11c28e8846
2 changed files with 2 additions and 5 deletions

View File

@@ -5,7 +5,6 @@ import (
"errors"
"fmt"
"io"
"strings"
"sync"
"time"
@@ -64,10 +63,6 @@ func (rnr *Runner) RunTrackedTask(newTask *models.Task, ctx context.Context, cfg
startedAt := strfmt.DateTime(time.Now())
newTask.StartedAt = startedAt
// set payload as Stdin
// fmt.Printf("ABOUT TO PASS IN PAYLOAD: %v", newTask.Payload)
cfg.Stdin = strings.NewReader(newTask.Payload)
result, err := rnr.RunTask(ctx, cfg)
completedAt := strfmt.DateTime(time.Now())