summaryrefslogtreecommitdiffstats
path: root/internal/app/run/runner.go
diff options
context:
space:
mode:
authorLennart Austenfeld <l.austenfeld@googlemail.com>2024-07-27 16:51:45 +0200
committerLennart Austenfeld <l.austenfeld@googlemail.com>2024-07-27 17:53:43 +0200
commit705f59f3e4ab591f74cfbddf94b6f39e6a548a3f (patch)
tree453cefe8ab54273dd55c6c6e9c5ee7c8df65e758 /internal/app/run/runner.go
parentMerge pull request 'Fix typo in create-runner-file help text (Frogejo -> Forg... (diff)
downloadforgejo-runner-705f59f3e4ab591f74cfbddf94b6f39e6a548a3f.tar.xz
forgejo-runner-705f59f3e4ab591f74cfbddf94b6f39e6a548a3f.zip
Add report_interval option to config
Diffstat (limited to 'internal/app/run/runner.go')
-rw-r--r--internal/app/run/runner.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/app/run/runner.go b/internal/app/run/runner.go
index b17705d..e7b9b0b 100644
--- a/internal/app/run/runner.go
+++ b/internal/app/run/runner.go
@@ -109,7 +109,7 @@ func (r *Runner) Run(ctx context.Context, task *runnerv1.Task) error {
ctx, cancel := context.WithTimeout(ctx, r.cfg.Runner.Timeout)
defer cancel()
- reporter := report.NewReporter(ctx, cancel, r.client, task)
+ reporter := report.NewReporter(ctx, cancel, r.client, task, r.cfg.Runner.ReportInterval)
var runErr error
defer func() {
lastWords := ""