Class: Spotlight::CleanupJobTrackersJob

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

Overview

Calls the #set_default_thumbnail method on the object passed in and calls save

Instance Method Summary collapse

Instance Method Details

#performObject



9
10
11
# File 'app/jobs/spotlight/cleanup_job_trackers_job.rb', line 9

def perform
  Spotlight::JobTracker.where(status: 'completed', updated_at: Time.zone.at(0)...Spotlight::Engine.config.reindex_progress_window.minutes.ago).delete_all
end