Remove UpdateEnergy from UpdateFootprint Task

Conputing total energy for running jobs does not make any sense
This commit is contained in:
Jan Eitzinger 2024-11-26 10:49:44 +01:00
parent 28539e60b0
commit e1be6c7138

View File

@ -114,12 +114,6 @@ func RegisterFootprintWorker() {
ce++
continue
}
stmt, err = jobRepo.UpdateEnergy(stmt, jobMeta)
if err != nil {
log.Errorf("update job (dbid: %d) statement build failed at energy step: %s", job.ID, err.Error())
ce++
continue
}
stmt = stmt.Where("job.id = ?", job.ID)
pendingStatements = append(pendingStatements, stmt)