2017-01-20 09:00:14 +09:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class LinkCrawlWorker
|
|
|
|
include Sidekiq::Worker
|
|
|
|
|
2017-04-04 07:53:20 +09:00
|
|
|
sidekiq_options queue: 'pull', retry: false
|
2017-01-20 09:00:14 +09:00
|
|
|
|
|
|
|
def perform(status_id)
|
|
|
|
FetchLinkCardService.new.call(Status.find(status_id))
|
|
|
|
rescue ActiveRecord::RecordNotFound
|
|
|
|
true
|
|
|
|
end
|
|
|
|
end
|