PERF: move crawl_topic_links to the low queue

Crawling topic links can be somewhat delayed no need to run it in the default
queue.
This commit is contained in:
Sam Saffron 2019-05-22 10:18:49 +10:00
parent d6daa60d0a
commit d9413a61d2
1 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,8 @@ require_dependency 'topic_link'
module Jobs
class CrawlTopicLink < Jobs::Base
sidekiq_options queue: 'low'
def execute(args)
raise Discourse::InvalidParameters.new(:topic_link_id) unless args[:topic_link_id].present?