Show number of short jobs per cluster on start page

Fixes ClusterCockpit/cc-frontend#21
This commit is contained in:
Lou Knauer
2022-03-08 10:26:51 +01:00
parent 9c6d37118b
commit 8e8b205da8
3 changed files with 22 additions and 7 deletions

View File

@@ -23,7 +23,7 @@ var groupBy2column = map[model.Aggregate]string{
model.AggregateCluster: "job.cluster",
}
const ShortJobDuration int = 180
const ShortJobDuration int = 5 * 60
// Helper function for the jobsStatistics GraphQL query placed here so that schema.resolvers.go is not too full.
func (r *queryResolver) jobsStatistics(ctx context.Context, filter []*model.JobFilter, groupBy *model.Aggregate) ([]*model.JobsStatistics, error) {