Decrease verbosity in jobcache sync task

This commit is contained in:
2025-09-10 15:13:53 +02:00
parent 7948d5f773
commit be92d5943d

View File

@@ -20,15 +20,15 @@ func RegisterCommitJobService() {
frequency = "2m" frequency = "2m"
} }
d, _ := time.ParseDuration(frequency) d, _ := time.ParseDuration(frequency)
cclog.Infof("Register commitJob service with %s interval", frequency) cclog.Infof("register commitJob service with %s interval", frequency)
s.NewJob(gocron.DurationJob(d), s.NewJob(gocron.DurationJob(d),
gocron.NewTask( gocron.NewTask(
func() { func() {
start := time.Now() start := time.Now()
cclog.Printf("Jobcache sync started at %s\n", start.Format(time.RFC3339)) cclog.Debugf("jobcache sync started at %s\n", start.Format(time.RFC3339))
jobs, _ := jobRepo.SyncJobs() jobs, _ := jobRepo.SyncJobs()
repository.CallJobStartHooks(jobs) repository.CallJobStartHooks(jobs)
cclog.Printf("Jobcache sync and job callbacks are done and took %s\n", time.Since(start)) cclog.Debugf("jobcache sync and job callbacks are done and took %s\n", time.Since(start))
})) }))
} }