lib/good_job/configuration.rb in good_job-2.4.0 vs lib/good_job/configuration.rb in good_job-2.4.1

- old
+ new

@@ -163,9 +163,13 @@ rails_config[:cron] || env_cron || {} end + def cron_entries + cron.map { |cron_key, params| GoodJob::CronEntry.new(params.merge(key: cron_key)) } + end + # Number of seconds to preserve jobs when using the +good_job cleanup_preserved_jobs+ CLI command. # This configuration is only used when {GoodJob.preserve_job_records} is +true+. # @return [Integer] def cleanup_preserved_jobs_before_seconds_ago (