Hello, what i ve been trying to achieve is pinging all ipaddress
present in my database periodically.
So i tried using spawn(:method=>thread) since im on windows.
its working fine but its working well with scheduling.
my code is like this:
def index
spawn(:method=>:thread) do
scheduler = Scheduler.new
scheduler.start
scheduler.schedule_every('1s') {ping_ip_addr}
scheduler.join
end
end
and if i try using sleep with spawn then it pings only first ip
address presnet in database.
please help!!
thanking in advance!!