Skip to content

Commit 330088d

Browse files
authored
pass payload as StdIn to task runner (#648)
1 parent d434952 commit 330088d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

api/runner/async_runner.go

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"net/http"
1111
"net/url"
1212
"sync"
13+
"strings"
1314
"time"
1415

1516
"github.com/Sirupsen/logrus"
@@ -56,6 +57,7 @@ func getCfg(t *models.Task) *task.Config {
5657
IdleTimeout: time.Duration(*t.IdleTimeout) * time.Second,
5758
ID: t.ID,
5859
AppName: t.AppName,
60+
Stdin: strings.NewReader(t.Payload),
5961
Env: t.EnvVars,
6062
}
6163
return cfg

0 commit comments

Comments
 (0)