summaryrefslogtreecommitdiff
path: root/internal/clients
diff options
context:
space:
mode:
authorPaul Buetow <pbuetow@mimecast.com>2021-01-12 11:00:28 +0000
committerPaul Buetow <pbuetow@mimecast.com>2021-01-12 11:00:28 +0000
commit8e93e53fb84951de68457cf96dc1c86e75749252 (patch)
tree061db254fd1ef0d9e30453a3ceb5e2d05a901e32 /internal/clients
parent3ebfee952559fccbbaeaa3fa61e6584b3504e1aa (diff)
add rampUpSleep before processing mapreduce results
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 1c0c2cc..1522537 100644
--- a/internal/clients/maprclient.go
+++ b/internal/clients/maprclient.go
@@ -131,6 +131,10 @@ func (c MaprClient) makeCommands() (commands []string) {
}
func (c *MaprClient) periodicReportResults(ctx context.Context) {
+ rampUpSleep := c.query.Interval / 2
+ logger.Debug("Ramp up sleeping before processing mapreduce results", rampUpSleep)
+ time.Sleep(rampUpSleep)
+
for {
select {
case <-time.After(c.query.Interval):