lib/coverband/integrations/background.rb in coverband-6.1.2 vs lib/coverband/integrations/background.rb in coverband-6.1.3

- old
+ new

@@ -28,9 +28,11 @@ return if running? logger.debug("Coverband: Starting background reporting") if Coverband.configuration.verbose sleep_seconds = Coverband.configuration.background_reporting_sleep_seconds.to_i @thread = Thread.new { + Thread.current.name = "Coverband Background Reporter" + loop do if Coverband.configuration.reporting_wiggle sleep_seconds = Coverband.configuration.background_reporting_sleep_seconds.to_i + rand(Coverband.configuration.reporting_wiggle.to_i) end # NOTE: Normally as processes first start we immediately report, this causes a redis spike on deploys