Skip to content

Commit

Permalink
support to use a template as interval
Browse files Browse the repository at this point in the history
  • Loading branch information
LinuxSuRen committed Oct 14, 2024
1 parent 62699d2 commit 7ca9b91
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/server/remote_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,13 @@ func (s *server) BatchRun(srv Runner_BatchRunServer) (err error) {
return err
}

var interval string
if interval, err = render.Render("batch run interval", in.Interval, nil); err != nil {
return
}

var duration time.Duration
if duration, err = time.ParseDuration(in.Interval); err != nil {
if duration, err = time.ParseDuration(interval); err != nil {
return
}

Expand Down

0 comments on commit 7ca9b91

Please sign in to comment.