Skip to content

Commit

Permalink
pass payload as StdIn to task runner (#648)
Browse files Browse the repository at this point in the history
  • Loading branch information
c0ze committed Sep 22, 2017
1 parent d434952 commit 330088d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/runner/async_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"net/http"
"net/url"
"sync"
"strings"
"time"

"github.com/Sirupsen/logrus"
Expand Down Expand Up @@ -56,6 +57,7 @@ func getCfg(t *models.Task) *task.Config {
IdleTimeout: time.Duration(*t.IdleTimeout) * time.Second,
ID: t.ID,
AppName: t.AppName,
Stdin: strings.NewReader(t.Payload),
Env: t.EnvVars,
}
return cfg
Expand Down

0 comments on commit 330088d

Please sign in to comment.