Class: FixSchedulesWorker

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Worker
Defined in:
app/workers/fix_schedules_worker.rb

Overview

Background job to fix the schedule for feed updates. Any missing schedule will be added to Sidekiq.

This serves as safeguard against schedules getting lost for any reason.

This is a Sidekiq worker

Instance Method Summary collapse

Instance Method Details

#performObject

Fix feed update schedules. Any feed which does not have scheduled updates will be detected, and the missing scheduled update for the feed will be added to Sidekiq.

This method is intended to be invoked from Sidekiq, which means it is performed in the background.


24
25
26
# File 'app/workers/fix_schedules_worker.rb', line 24

def perform
  ScheduleManager.fix_scheduled_updates
end