move link crawler to bulk queue; give up on ssl or no-card errors
parent
f9680593c1
commit
8c303e4188
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue