25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
276B

  1. class CheckWorker
  2. include Sidekiq::Worker
  3. sidekiq_options retry: false
  4. def perform(host, *args)
  5. host = SimpleIDN.to_ascii host.downcase
  6. result = self.analyze host, *args
  7. args = nil if args.empty?
  8. Analysis.post! self.type, host, args, result
  9. end
  10. end