add default queue

This commit is contained in:
albert
2013-03-03 01:21:00 -05:00
parent f0b29fc3ba
commit 89c0ab86a8
6 changed files with 7 additions and 7 deletions

View File

@@ -181,7 +181,7 @@ class Artist < ActiveRecord::Base
# potential race condition but unlikely
unless TagImplication.where(:antecedent_name => name, :consequent_name => "banned_artist").exists?
tag_implication = TagImplication.create(:antecedent_name => name, :consequent_name => "banned_artist")
tag_implication.delay.process!
tag_implication.delay(:queue => "default").process!
end
update_column(:is_active, false)

View File

@@ -373,7 +373,7 @@ class Tag < ActiveRecord::Base
if post_count < 100
update_related
else
delay.update_related
delay(:queue => "default").update_related
end
end
end