config/initializers/1_settings.rb
# Runs every minute in a random ten-minute period on Sundays, to balance the
# load on the server receiving these pings. The usage ping is safe to run
# multiple times because of a 24 hour exclusive lock.
Runs every minute in a random ten-minute period on Sundays, to balance the
load on the server receiving these pings. The usage ping is safe to run
multiple times because of a 24 hour exclusive lock.
Runs every minute in a random ten - minute period on Sundays to balance the load on the server receiving these pings . The usage ping is safe to run multiple times because of a 24 hour exclusive lock .
def cron_for_usage_ping
      hour = rand(24)
      minute = rand(6)
      "#{minute}0-#{minute}9 #{hour} * * 0"
    end
def cron_for_usage_ping hour = rand ( 24 ) minute = rand ( 6 ) "#{minute}0-#{minute}9 #{hour} * * 0" end
Runs every minute in a random ten-minute period on Sundays, to balance the
load on the server receiving these pings.
Runs every minute in a random ten - minute period on Sundays to balance the load on the server receiving these pings .