feat: Add total energy and energy footprint

This commit is contained in:
2024-08-29 07:26:49 +02:00
parent f305863616
commit 5b03cf826b
4 changed files with 76 additions and 8 deletions

View File

@@ -57,6 +57,10 @@ func archivingWorker() {
log.Errorf("archiving job (dbid: %d) failed at update Footprint step: %s", job.ID, err.Error())
continue
}
if err := jobRepo.UpdateEnergy(jobMeta); err != nil {
log.Errorf("archiving job (dbid: %d) failed at update Energy step: %s", job.ID, err.Error())
continue
}
// Update the jobs database entry one last time:
if err := jobRepo.MarkArchived(jobMeta, schema.MonitoringStatusArchivingSuccessful); err != nil {
log.Errorf("archiving job (dbid: %d) failed at marking archived step: %s", job.ID, err.Error())