jobs: migrate pool category updates to ActiveJob.

This commit is contained in:
evazion
2019-08-16 20:49:34 -05:00
parent 4e8b3d9310
commit 24eb1b155f
3 changed files with 13 additions and 3 deletions

View File

@@ -0,0 +1,8 @@
class UpdatePoolPseudoTagsJob < ApplicationJob
queue_as :default
queue_with_priority 20
def perform(pool)
pool.update_category_pseudo_tags_for_posts
end
end