Minor fixes; Update frontend

This commit is contained in:
Lou Knauer 2022-03-30 09:39:13 +02:00
parent c28604b524
commit 27b3d78f6e
3 changed files with 11 additions and 1 deletions

@ -1 +1 @@
Subproject commit 7344533214256e4441040852f7d8f1af3298804c
Subproject commit 5d90ff9a4a03242f3a4686c7803dc4b0cee66488

View File

@ -211,6 +211,10 @@ func (r *Resolver) rooflineHeatmap(ctx context.Context, filter []*model.JobFilte
}
for _, job := range jobs {
if job.MonitoringStatus == schema.MonitoringStatusDisabled || job.MonitoringStatus == schema.MonitoringStatusArchivingFailed {
continue
}
jobdata, err := metricdata.LoadData(job, []string{"flops_any", "mem_bw"}, []schema.MetricScope{schema.MetricScopeNode}, ctx)
if err != nil {
return nil, err
@ -270,6 +274,10 @@ func (r *queryResolver) jobsFootprints(ctx context.Context, filter []*model.JobF
nodehours := make([]schema.Float, 0, len(jobs))
for _, job := range jobs {
if job.MonitoringStatus == schema.MonitoringStatusDisabled || job.MonitoringStatus == schema.MonitoringStatusArchivingFailed {
continue
}
if err := metricdata.LoadAverages(job, metrics, avgs, ctx); err != nil {
return nil, err
}

View File

@ -167,6 +167,7 @@ func TestRestApi(t *testing.T) {
"project": "testproj",
"cluster": "testcluster",
"partition": "default",
"walltime": 3600,
"arrayJobId": 0,
"numNodes": 1,
"numHwthreads": 8,
@ -217,6 +218,7 @@ func TestRestApi(t *testing.T) {
job.Cluster != "testcluster" ||
job.SubCluster != "sc1" ||
job.Partition != "default" ||
job.Walltime != 3600 ||
job.ArrayJobId != 0 ||
job.NumNodes != 1 ||
job.NumHWThreads != 8 ||