111297422-que_jobs

This commit is contained in:
Stas 2016-01-25 16:56:04 +02:00
parent 764abdfd89
commit 8ed8a46046
3 changed files with 15 additions and 1 deletions

View file

@ -12,6 +12,10 @@ namespace :whois do
puts(@i += 10000)
GC.start
end
GC.start
UpdateWhoisRecordJob.enqueue WhoisRecord.find_each.map(&:id), 'domain'
end
puts "\n-----> all done in #{(Time.zone.now.to_f - start).round(2)} seconds"
end