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