From d9413a61d2f87cc5cde4beb51428909262bf90e4 Mon Sep 17 00:00:00 2001 From: Sam Saffron Date: Wed, 22 May 2019 10:18:49 +1000 Subject: [PATCH] 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. --- app/jobs/regular/crawl_topic_link.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/jobs/regular/crawl_topic_link.rb b/app/jobs/regular/crawl_topic_link.rb index edf3cceee89..36c10ff0c2a 100644 --- a/app/jobs/regular/crawl_topic_link.rb +++ b/app/jobs/regular/crawl_topic_link.rb @@ -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?