Skip to content

Commit

Permalink
Merge branch 'master' into cristian/associator-debug-logging
Browse files Browse the repository at this point in the history
  • Loading branch information
cristiangreco authored Aug 2, 2023
2 parents 4e7cb95 + f8f56ba commit 13f6c8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/job/custom.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ func runCustomNamespaceJob(
maxMetricCount := metricsPerQuery
length := getMetricDataInputLength(job.Metrics)
partition := int(math.Ceil(float64(metricDataLength) / float64(maxMetricCount)))
logger.Debug("GetMetricData partitions", "total", partition)

wg.Add(partition)

Expand Down
1 change: 1 addition & 0 deletions pkg/job/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ func runDiscoveryJob(
maxMetricCount := metricsPerQuery
length := getMetricDataInputLength(job.Metrics)
partition := int(math.Ceil(float64(metricDataLength) / float64(maxMetricCount)))
logger.Debug("GetMetricData partitions", "total", partition)

var wg sync.WaitGroup
wg.Add(partition)
Expand Down

0 comments on commit 13f6c8c

Please sign in to comment.