summaryrefslogtreecommitdiff
path: root/internal/server/cron
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-09-18 01:04:26 +0300
committerPaul Buetow <paul@buetow.org>2024-09-18 01:04:26 +0300
commit5263e61d5667009e7a7ac13014cec73ccbd0e20a (patch)
tree64187b679f0b0da34840c3d77d5bde441cea3fb0 /internal/server/cron
parent279ee9e1026f74f923766286b767d4df3901b82f (diff)
some stuff
Diffstat (limited to 'internal/server/cron')
-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)
+ })
}
}
}