summaryrefslogtreecommitdiff
path: root/internal/server/cron/cron.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/server/cron/cron.go')
-rw-r--r--internal/server/cron/cron.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/server/cron/cron.go b/internal/server/cron/cron.go
index 3de44b8..3d6b9cf 100644
--- a/internal/server/cron/cron.go
+++ b/internal/server/cron/cron.go
@@ -28,7 +28,9 @@ func Run(ctx context.Context, conf config.ServerConfig, status health.Status) {
case <-mergeTicker.C:
run(ctx, "cron->repository.Merge", status, repository.Instance(conf).MergeRemotely)
case <-scheduleTicker.C:
- run(ctx, "cron->scheduler.Run", status, scheduler.Run)
+ run(ctx, "cron->scheduler.Run", status, func(ctx context.Context) error {
+ return scheduler.Run(ctx, conf)
+ })
}
}
}