mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-07-23 04:51:39 +02:00
Adapt job iterator
* Add option to also load Job Metric Data * Validate Job Metric Data * Allow null values in series array
This commit is contained in:
@@ -154,10 +154,10 @@ func TestIter(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
for job := range fsa.Iter() {
|
||||
fmt.Printf("Job %d\n", job.JobID)
|
||||
for job := range fsa.Iter(false) {
|
||||
fmt.Printf("Job %d\n", job.Meta.JobID)
|
||||
|
||||
if job.Cluster != "emmy" {
|
||||
if job.Meta.Cluster != "emmy" {
|
||||
t.Fail()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user