diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-09-16 02:33:05 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-09-16 02:33:05 -0500 |
commit | 8c303e4188a6460e5af78bd0e08fce555eb713f1 (patch) | |
tree | 718c6577d01aac680c74456c7ead674913e4ba9b /app | |
parent | f9680593c1924b5ea40ef20f61b18b2f8bbdc316 (diff) |
move link crawler to bulk queue; give up on ssl or no-card errors
Diffstat (limited to 'app')
-rw-r--r-- | app/workers/link_crawl_worker.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/workers/link_crawl_worker.rb b/app/workers/link_crawl_worker.rb index b3d8aa264..34a46db7a 100644 --- a/app/workers/link_crawl_worker.rb +++ b/app/workers/link_crawl_worker.rb @@ -3,11 +3,11 @@ class LinkCrawlWorker include Sidekiq::Worker - sidekiq_options queue: 'pull', retry: 0 + sidekiq_options queue: 'bulk', retry: 0 def perform(status_id) FetchLinkCardService.new.call(Status.find(status_id)) - rescue ActiveRecord::RecordNotFound + rescue ActiveRecord::RecordNotFound, Zlib::BufError, Mastodon::RaceConditionError, OpenSSL::SSL::SSLError true end end |