domain_purge_worker.rb 240 B

1234567891011
  1. # frozen_string_literal: true
  2. class Admin::DomainPurgeWorker
  3. include Sidekiq::Worker
  4. sidekiq_options queue: 'pull', lock: :until_executed, lock_ttl: 1.week.to_i
  5. def perform(domain)
  6. PurgeDomainService.new.call(domain)
  7. end
  8. end