mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-25 21:09:05 +01:00
Remove UpdateEnergy from UpdateFootprint Task
Conputing total energy for running jobs does not make any sense
This commit is contained in:
parent
28539e60b0
commit
e1be6c7138
@ -114,12 +114,6 @@ func RegisterFootprintWorker() {
|
|||||||
ce++
|
ce++
|
||||||
continue
|
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)
|
stmt = stmt.Where("job.id = ?", job.ID)
|
||||||
|
|
||||||
pendingStatements = append(pendingStatements, stmt)
|
pendingStatements = append(pendingStatements, stmt)
|
||||||
|
Loading…
Reference in New Issue
Block a user