diff options
Diffstat (limited to 'internal/clients')
| -rw-r--r-- | internal/clients/maprclient.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/clients/maprclient.go b/internal/clients/maprclient.go index 6a06aaf..feb7e47 100644 --- a/internal/clients/maprclient.go +++ b/internal/clients/maprclient.go @@ -131,6 +131,10 @@ func (c MaprClient) makeCommands(options map[string]string) (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): |
