mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-07-23 12:51:40 +02:00
Extend Job Hooks and add unit tests
Add job tagger control
This commit is contained in:
@@ -28,8 +28,8 @@ func RegisterCommitJobService() {
|
||||
func() {
|
||||
start := time.Now()
|
||||
log.Printf("Jobcache sync started at %s", start.Format(time.RFC3339))
|
||||
jobRepo.SyncJobs()
|
||||
repository.CallJobStartHooks()
|
||||
log.Printf("Jobcache sync is done and took %s", time.Since(start))
|
||||
jobs, _ := jobRepo.SyncJobs()
|
||||
repository.CallJobStartHooks(jobs)
|
||||
log.Printf("Jobcache sync and job callbacks are done and took %s", time.Since(start))
|
||||
}))
|
||||
}
|
||||
|
Reference in New Issue
Block a user