mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-07-23 04:51:39 +02:00
Bugfix in footprint update
This commit is contained in:
@@ -487,10 +487,8 @@ func (r *JobRepository) UpdateDuration() error {
|
||||
stmnt := sq.Update("job").
|
||||
Set("duration", sq.Expr("? - job.start_time", time.Now().Unix())).
|
||||
Where("job_state = 'running'")
|
||||
sql, _, err := stmnt.ToSql()
|
||||
log.Infof("Duration Update query %s", sql)
|
||||
|
||||
_, err = stmnt.RunWith(r.stmtCache).Exec()
|
||||
_, err := stmnt.RunWith(r.stmtCache).Exec()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user