Class: ScheduleWorkers::EventDriven::ExpirationEventProcessorWorker

Inherits:
ApplicationWorker
  • Object
show all
Defined in:
app/workers/schedule_workers/event_driven/expiration_event_processor_worker.rb

Instance Method Summary collapse

Methods inherited from ApplicationWorker

unlimited_retry

Instance Method Details

#performObject

Performs the daily expiration check for some events This worker runs every day at 00:00 (midnight) and checks for events



8
9
10
11
12
13
14
# File 'app/workers/schedule_workers/event_driven/expiration_event_processor_worker.rb', line 8

def perform
  ExpirationEvents::ExpiredComemorePaylessWorker.perform_async
  ExpirationEvents::ExpiredPricingAdjustmentWorker.perform_async
  ExpirationEvents::ExpiredPromotionBadgeDynamicPriceWorker.perform_async
rescue StandardError => e
  APMErrorHandler.report(e)
end