mirror of
				https://github.com/ClusterCockpit/cc-backend
				synced 2025-11-04 01:25:06 +01:00 
			
		
		
		
	Add debug output
This commit is contained in:
		@@ -47,9 +47,10 @@ func RegisterFootprintWorker() {
 | 
			
		||||
					scopes = append(scopes, schema.MetricScopeAccelerator)
 | 
			
		||||
 | 
			
		||||
					for _, job := range jobs {
 | 
			
		||||
						log.Debugf("Try job %d", job.JobID)
 | 
			
		||||
						jobData, err := metricDataDispatcher.LoadData(job, allMetrics, scopes, context.Background())
 | 
			
		||||
						if err != nil {
 | 
			
		||||
							log.Error("Error wile loading job data for footprint update")
 | 
			
		||||
							log.Errorf("Error wile loading job data for footprint update: %v", err)
 | 
			
		||||
							continue
 | 
			
		||||
						}
 | 
			
		||||
 | 
			
		||||
@@ -107,6 +108,7 @@ func RegisterFootprintWorker() {
 | 
			
		||||
						// 	log.Errorf("Update job (dbid: %d) failed at db execute: %s", job.ID, err.Error())
 | 
			
		||||
						// 	continue
 | 
			
		||||
						// }
 | 
			
		||||
						log.Debugf("Finish job %d", job.JobID)
 | 
			
		||||
					}
 | 
			
		||||
 | 
			
		||||
					jobRepo.TransactionCommit(t)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user