fix: add accelerator scope to to-be archived scopes

- if numAcc > 0
- fixes Add accelerator scope to archive requests #282
This commit is contained in:
Christoph Kluge 2024-08-13 17:49:28 +02:00
parent ce9995dac7
commit 561fd41d5d

View File

@ -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")