blob: b93ac6c7a17bfb3d9e6468054097cbf8271d7ac0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# frozen_string_literal: true
class FetchReplyWorker
include Sidekiq::Worker
include ExponentialBackoff
sidekiq_options queue: 'pull', retry: 3
def perform(child_url)
if child_url.is_a?(String)
FetchRemoteStatusService.new.call(child_url, nil)
elsif child_url.is_a?(Enumerable)
child_url.each { |url| FetchRemoteStatusService.new.call(url, nil) }
end
end
end
|