mirror of
https://github.com/internetee/registry.git
synced 2025-07-01 00:33:36 +02:00
111297422-que_jobs
This commit is contained in:
parent
764abdfd89
commit
8ed8a46046
3 changed files with 15 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue