search for: sysloglog

Displaying 1 result from an estimated 1 matches for "sysloglog".

Did you mean: syslog_ng
2006 Oct 04
0
do_work and long running rails tasks?
...seems to be blockin on Model.find calls. Here''s the code --- worker.rb -- def do_work(args) @rows = [] @percent = 0 @host = Host.find( args[:id]) ips = @host.ipaddresses step = 100.0/ips.size ips.each do |ip| @percent += step new_rows = Sysloglog.find(:all, :limit => 20, :offset => 0, :order => "eventtime DESC", :conditions => [ "assets_ipaddr_id = ?", ip.id ]...