Inline jobstate literal in query

Entire-Checkpoint: 35f06df74b51
This commit is contained in:
2026-03-13 15:16:07 +01:00
parent df2a13def2
commit f15f1452cc
2 changed files with 2 additions and 2 deletions

View File

@@ -1066,7 +1066,7 @@ func (r *JobRepository) GetUsedNodes(ts int64) (map[string][]string, error) {
// Note: Query expects index on (job_state, start_time) for optimal performance
q := sq.Select("job.cluster", "job.resources").From("job").
Where("job.start_time < ?", ts).
Where(sq.Eq{"job.job_state": "running"})
Where("job.job_state = 'running'")
rows, err := q.RunWith(r.stmtCache).Query()
if err != nil {