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:
Jan Eitzinger
2023-03-31 15:28:35 +02:00
parent bfee9d847b
commit 559445900d
6 changed files with 71 additions and 29 deletions

View File

@@ -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()
}
}