2017-01-19 19:00:14 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class LinkCrawlWorker
|
|
|
|
include Sidekiq::Worker
|
|
|
|
|
2017-10-06 14:39:08 -04:00
|
|
|
sidekiq_options queue: 'pull', retry: 0
|
2017-01-19 19:00:14 -05:00
|
|
|
|
|
|
|
def perform(status_id)
|
|
|
|
FetchLinkCardService.new.call(Status.find(status_id))
|
|
|
|
rescue ActiveRecord::RecordNotFound
|
|
|
|
true
|
|
|
|
end
|
|
|
|
end
|