thread safety breaks class autoloading in rake; move mall spider cron jobs to runner

This commit is contained in:
Emi Matchu 2010-12-01 19:28:16 -05:00
parent 0399e0a38f
commit ea4a4e6ee0
2 changed files with 3 additions and 13 deletions

View file

@ -22,9 +22,10 @@
env :MAILTO, 'webmaster@openneo.net'
every :day do
rake "items:spider_mall"
runner "Item.spider_mall!"
end
ItemsLimit = 20
every :hour do
rake "items:spider_mall_assets"
runner "Item.spider_mall_assets! #{ItemsLimit}"
end

View file

@ -1,11 +0,0 @@
namespace :items do
desc "Spider NC Mall for wearable items, and store them for later asset spidering"
task :spider_mall => :environment do
Item.spider_mall!
end
desc "Spider NC Mall for assets for NC Mall items we've already collected"
task :spider_mall_assets => :environment do
Item.spider_mall_assets!(ENV['LIMIT'] || 100)
end
end