lib/sidekiq_alive/config.rb in sidekiq-alive-next-2.2.0 vs lib/sidekiq_alive/config.rb in sidekiq-alive-next-2.2.1
- old
+ new
@@ -20,18 +20,18 @@
def initialize
set_defaults
end
def set_defaults
- @host = ENV.fetch('SIDEKIQ_ALIVE_HOST', '0.0.0.0')
- @port = ENV.fetch('SIDEKIQ_ALIVE_PORT', 7433)
- @path = ENV.fetch('SIDEKIQ_ALIVE_PATH', '/')
- @liveness_key = 'SIDEKIQ::LIVENESS_PROBE_TIMESTAMP'
+ @host = ENV.fetch("SIDEKIQ_ALIVE_HOST", "0.0.0.0")
+ @port = ENV.fetch("SIDEKIQ_ALIVE_PORT", 7433)
+ @path = ENV.fetch("SIDEKIQ_ALIVE_PATH", "/")
+ @liveness_key = "SIDEKIQ::LIVENESS_PROBE_TIMESTAMP"
@time_to_live = 10 * 60
@callback = proc {}
- @registered_instance_key = 'SIDEKIQ_REGISTERED_INSTANCE'
+ @registered_instance_key = "SIDEKIQ_REGISTERED_INSTANCE"
@queue_prefix = :"sidekiq-alive"
- @server = ENV.fetch('SIDEKIQ_ALIVE_SERVER', 'webrick')
+ @server = ENV.fetch("SIDEKIQ_ALIVE_SERVER", "webrick")
@custom_liveness_probe = proc { true }
@shutdown_callback = proc {}
end
def registration_ttl