class Sidekiq::HeartbeatMonitor::TestWorker
Used for testing purposes to ensure that the system is working properly.
Public Instance Methods
perform(wait_time = 1.second)
click to toggle source
# File lib/sidekiq/heartbeat_monitor/test_worker.rb, line 11 def perform(wait_time = 1.second) puts "Internal test worker started and will continue for the next #{wait_time} seconds." if wait_time > 3.seconds sleep(wait_time) puts "Internal test worker finished after #{wait_time} seconds." if wait_time > 3.seconds end