Gab-Social/app/workers/activitypub/synchronize_featured_collection_worker.rb
mgabdev 43cd72ddcc Updated AP SynchronizeFeaturedCollectionWorker sidekiq options
• Updated:
- AP SynchronizeFeaturedCollectionWorker sidekiq options to retry:0, dead: true
2020-06-04 18:56:53 -04:00

14 lines
359 B
Ruby

# frozen_string_literal: true
class ActivityPub::SynchronizeFeaturedCollectionWorker
include Sidekiq::Worker
sidekiq_options queue: 'pull', unique: :until_executed, retry: 0, dead: true
def perform(account_id)
ActivityPub::FetchFeaturedCollectionService.new.call(Account.find(account_id))
rescue ActiveRecord::RecordNotFound
true
end
end