Skip to content

Commit ee6490d

Browse files
0xERR0Rtaraspos
authored andcommitted
set "since" parameter for container logs
1 parent c4768ab commit ee6490d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/runjob.go

+2
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ func (j *RunJob) Run(ctx *Context) error {
7878
}
7979
}
8080

81+
startTime := time.Now()
8182
if err := j.startContainer(ctx.Execution, container); err != nil {
8283
return err
8384
}
@@ -92,6 +93,7 @@ func (j *RunJob) Run(ctx *Context) error {
9293
ErrorStream: ctx.Execution.ErrorStream,
9394
Stdout: true,
9495
Stderr: true,
96+
Since: startTime.Unix(),
9597
RawTerminal: true,
9698
}); err != nil {
9799
return err

0 commit comments

Comments
 (0)