fedibird-fe/app/workers/searchability_update_worker.rb
2023-02-06 16:28:35 +09:00

13 lines
295 B
Ruby

# frozen_string_literal: true
class SearchabilityUpdateWorker
include Sidekiq::Worker
sidekiq_options queue: 'pull', lock: :until_executed
def perform(account_id)
SearchabilityUpdateService.new.call(Account.find(account_id))
rescue ActiveRecord::RecordNotFound
true
end
end