Sha256: 84f64fbebd0155c3a8014136405425945a4609ae6a1e4fcad3f88bfade385e07

Contents?: true

Size: 397 Bytes

Versions: 47

Compression:

Stored size: 397 Bytes

Contents

# frozen_string_literal: true

module Spotlight
  ###
  # Calls the #set_default_thumbnail method
  # on the object passed in and calls save
  ###
  class CleanupJobTrackersJob < Spotlight::ApplicationJob
    def perform
      Spotlight::JobTracker.where(status: 'completed', updated_at: Time.zone.at(0)...Spotlight::Engine.config.reindex_progress_window.minutes.ago).delete_all
    end
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
blacklight-spotlight-4.3.6 app/jobs/spotlight/cleanup_job_trackers_job.rb
blacklight-spotlight-4.3.5 app/jobs/spotlight/cleanup_job_trackers_job.rb
blacklight-spotlight-4.3.4 app/jobs/spotlight/cleanup_job_trackers_job.rb
blacklight-spotlight-4.3.3 app/jobs/spotlight/cleanup_job_trackers_job.rb
blacklight-spotlight-4.3.2 app/jobs/spotlight/cleanup_job_trackers_job.rb
blacklight-spotlight-4.3.1 app/jobs/spotlight/cleanup_job_trackers_job.rb
blacklight-spotlight-4.3.0 app/jobs/spotlight/cleanup_job_trackers_job.rb
blacklight-spotlight-4.2.0 app/jobs/spotlight/cleanup_job_trackers_job.rb
blacklight-spotlight-4.1.2 app/jobs/spotlight/cleanup_job_trackers_job.rb
blacklight-spotlight-4.1.1 app/jobs/spotlight/cleanup_job_trackers_job.rb
blacklight-spotlight-4.1.0 app/jobs/spotlight/cleanup_job_trackers_job.rb
blacklight-spotlight-4.0.3 app/jobs/spotlight/cleanup_job_trackers_job.rb
blacklight-spotlight-4.0.2 app/jobs/spotlight/cleanup_job_trackers_job.rb
blacklight-spotlight-4.0.1 app/jobs/spotlight/cleanup_job_trackers_job.rb
blacklight-spotlight-4.0.0 app/jobs/spotlight/cleanup_job_trackers_job.rb
blacklight-spotlight-3.6.0.beta10 app/jobs/spotlight/cleanup_job_trackers_job.rb
blacklight-spotlight-3.6.0.beta9 app/jobs/spotlight/cleanup_job_trackers_job.rb
blacklight-spotlight-3.6.0.beta8 app/jobs/spotlight/cleanup_job_trackers_job.rb
blacklight-spotlight-3.5.0.4 app/jobs/spotlight/cleanup_job_trackers_job.rb
blacklight-spotlight-3.6.0.beta7 app/jobs/spotlight/cleanup_job_trackers_job.rb