summaryrefslogtreecommitdiff
path: root/internal/clients
diff options
context:
space:
mode:
authorPaul Buetow <pbuetow@mimecast.com>2021-10-21 21:02:58 +0300
committerPaul Buetow <pbuetow@mimecast.com>2021-10-21 21:02:58 +0300
commit739205206d63bf42f4e843b39d04d4c8cd8207c3 (patch)
treea815db368aa1f644988eed5d1fb092a3da164cb2 /internal/clients
parent0908282e8b3c09f603fd4083fd7f075c4535e939 (diff)
backport mapreduce reporter rampup from master
Diffstat (limited to 'internal/clients')
-rw-r--r--internal/clients/maprclient.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/clients/maprclient.go b/internal/clients/maprclient.go
index 074494c..246946f 100644
--- a/internal/clients/maprclient.go
+++ b/internal/clients/maprclient.go
@@ -137,6 +137,10 @@ func (c MaprClient) makeCommands() (commands []string) {
}
func (c *MaprClient) periodicReportResults(ctx context.Context) {
+ rampUpSleep := c.query.Interval / 2
+ dlog.Client.Debug("Ramp up sleeping before processing mapreduce results", rampUpSleep)
+ time.Sleep(rampUpSleep)
+
for {
select {
case <-time.After(c.query.Interval):