Skip to content

Commit

Permalink
fix: add accelerator scope to to-be archived scopes
Browse files Browse the repository at this point in the history
- if numAcc > 0
- fixes Add accelerator scope to archive requests #282
  • Loading branch information
spacehamster87 committed Aug 13, 2024
1 parent ce9995d commit 561fd41
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/metricdata/metricdata.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,10 @@ func ArchiveJob(job *schema.Job, ctx context.Context) (*schema.JobMeta, error) {
scopes = append(scopes, schema.MetricScopeCore)
}

if job.NumAcc > 0 {
scopes = append(scopes, schema.MetricScopeAccelerator)
}

jobData, err := LoadData(job, allMetrics, scopes, ctx)
if err != nil {
log.Error("Error wile loading job data for archiving")
Expand Down

0 comments on commit 561fd41

Please sign in to comment.