gab-social/app/workers/link_crawl_worker.rb
mgabdev a2a070510a Updated LinkCrawlWorker retry to 3
• Updated:
- LinkCrawlWorker retry to 3
2020-05-27 13:26:20 -04:00

14 lines
263 B
Ruby

# frozen_string_literal: true
class LinkCrawlWorker
include Sidekiq::Worker
sidekiq_options queue: 'pull', retry: 3
def perform(status_id)
FetchLinkCardService.new.call(Status.find(status_id))
rescue ActiveRecord::RecordNotFound
true
end
end