0c9eac80d8
* Add a limit to how many posts can get fetched as a result of a single request * Add tests * Always pass `request_id` when processing `Announce` activities --------- Co-authored-by: nametoolong <nametoolong@users.noreply.github.com>
12 lines
282 B
Ruby
12 lines
282 B
Ruby
# frozen_string_literal: true
|
|
|
|
class FetchReplyWorker
|
|
include Sidekiq::Worker
|
|
include ExponentialBackoff
|
|
|
|
sidekiq_options queue: 'pull', retry: 3
|
|
|
|
def perform(child_url, options = {})
|
|
FetchRemoteStatusService.new.call(child_url, **options.deep_symbolize_keys)
|
|
end
|
|
end
|