thread safety breaks class autoloading in rake; move mall spider cron jobs to runner
This commit is contained in:
parent
0399e0a38f
commit
ea4a4e6ee0
2 changed files with 3 additions and 13 deletions
|
@ -22,9 +22,10 @@
|
||||||
env :MAILTO, 'webmaster@openneo.net'
|
env :MAILTO, 'webmaster@openneo.net'
|
||||||
|
|
||||||
every :day do
|
every :day do
|
||||||
rake "items:spider_mall"
|
runner "Item.spider_mall!"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
ItemsLimit = 20
|
||||||
every :hour do
|
every :hour do
|
||||||
rake "items:spider_mall_assets"
|
runner "Item.spider_mall_assets! #{ItemsLimit}"
|
||||||
end
|
end
|
||||||
|
|
|
@ -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
|
|
Loading…
Reference in a new issue