about summary refs log tree commit diff
path: root/app/workers/admin/domain_purge_worker.rb
blob: 095232a6d74af11774bc8bbed5073eaa2f7e5972 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

class Admin::DomainPurgeWorker
  include Sidekiq::Worker

  sidekiq_options queue: 'pull', lock: :until_executed

  def perform(domain)
    PurgeDomainService.new.call(domain)
  end
end