Gab Social. All are welcome.
This commit is contained in:
12
app/workers/fetch_reply_worker.rb
Normal file
12
app/workers/fetch_reply_worker.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class FetchReplyWorker
|
||||
include Sidekiq::Worker
|
||||
include ExponentialBackoff
|
||||
|
||||
sidekiq_options queue: 'pull', retry: 3
|
||||
|
||||
def perform(child_url)
|
||||
FetchRemoteStatusService.new.call(child_url)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user