mirror of
				https://github.com/ClusterCockpit/cc-backend
				synced 2025-10-31 07:55:06 +01:00 
			
		
		
		
	Decrease verbosity in jobcache sync task
This commit is contained in:
		| @@ -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)) | ||||||
| 			})) | 			})) | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user