Class: CreatePulpDiskSpaceNotifications

Inherits:
ApplicationJob
  • Object
show all
Defined in:
app/jobs/create_pulp_disk_space_notifications.rb

Instance Method Summary collapse

Instance Method Details

#humanized_nameObject



8
9
10
# File 'app/jobs/create_pulp_disk_space_notifications.rb', line 8

def humanized_name
  _('Pulp disk space notification')
end

#performObject



2
3
4
5
6
# File 'app/jobs/create_pulp_disk_space_notifications.rb', line 2

def perform
  Katello::UINotifications::Pulp::ProxyDiskSpace.deliver!
ensure
  self.class.set(:wait => 12.hours).perform_later
end