Class: CreateHostLifecycleExpireSoonNotifications
- Inherits:
-
ApplicationJob
- Object
- ApplicationJob
- CreateHostLifecycleExpireSoonNotifications
- Defined in:
- app/jobs/create_host_lifecycle_expire_soon_notifications.rb
Instance Method Summary collapse
Instance Method Details
#humanized_name ⇒ Object
8 9 10 |
# File 'app/jobs/create_host_lifecycle_expire_soon_notifications.rb', line 8 def humanized_name _('Host lifecycle support expiration notification') end |
#perform ⇒ Object
2 3 4 5 6 |
# File 'app/jobs/create_host_lifecycle_expire_soon_notifications.rb', line 2 def perform Katello::UINotifications::Hosts::LifecycleExpireSoon.deliver! ensure self.class.set(:wait => 1.week).perform_later end |