Project

General

Profile

« Previous | Next » 

Revision 857df9e0

Added by Jeremy Lenz about 2 months ago

Fixes #37271 - Notify users before manifest expiration

View differences:

lib/katello/scheduled_jobs.rb
# First, we check if there's a job already enqueued for any notifications
::Foreman::Application.dynflow.config.on_init do |world|
[CreateExpiredManifestNotifications, CreateHostLifecycleExpireSoonNotifications, CreatePulpDiskSpaceNotifications, SendExpireSoonNotifications].each do |job_class|
[
CreateExpiredManifestNotifications,
CreateHostLifecycleExpireSoonNotifications,
CreatePulpDiskSpaceNotifications,
SendExpireSoonNotifications,
CreateManifestExpireSoonWarningNotifications
].each do |job_class|
job_class.spawn_if_missing(world)
end
end

Also available in: Unified diff