class AeActiveJobState::DeleteOldJobStatesJob

Public Instance Methods

perform(older_than_days: 30) click to toggle source
# File lib/ae_active_job_state/delete_old_job_states_job.rb, line 5
def perform(older_than_days: 30)
  JobState.where('updated_at < ?', older_than_days.days.ago).destroy_all
end