lib/good_job/configuration.rb in good_job-1.2.3 vs lib/good_job/configuration.rb in good_job-1.2.4

- old
+ new

@@ -49,7 +49,15 @@ options[:poll_interval] || env['GOOD_JOB_POLL_INTERVAL'] || 1 ).to_i end + + def cleanup_preserved_jobs_before_seconds_ago + ( + options[:before_seconds_ago] || + env['GOOD_JOB_CLEANUP_PRESERVED_JOBS_BEFORE_SECONDS_AGO'] || + 24 * 60 * 60 + ).to_i + end end end