• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pulibrary / pdc_describe / 7627d3fa-0144-4cd5-b57e-666995ba6fd5

20 Mar 2025 07:43PM UTC coverage: 95.84%. Remained the same
7627d3fa-0144-4cd5-b57e-666995ba6fd5

push

circleci

web-flow
Make the Redis health check random number seed larger so we do not collide (#2060)

0 of 1 new or added line in 1 file covered. (0.0%)

3364 of 3510 relevant lines covered (95.84%)

403.36 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

71.43
/app/services/pul_redis.rb
1
# frozen_string_literal: true
2

3
require "health_monitor/providers/redis"
2✔
4

5
CONNECTION_POOL_SIZE = 1
2✔
6

7
class PULRedis < HealthMonitor::Providers::Redis
2✔
8
  private
2✔
9

10
    # Add a random number to the key so we do not collide with another machine
11
    def key
2✔
NEW
12
      random = rand(999)
×
13
      @key ||= ["health", request.try(:remote_ip), random].join(":")
×
14
    end
15
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc