1
0

delayed_job.rb 363 B

123456789
  1. Delayed::Worker.destroy_failed_jobs = false
  2. Delayed::Worker.max_attempts = 5
  3. Delayed::Worker.max_run_time = 20.minutes
  4. Delayed::Worker.read_ahead = 5
  5. Delayed::Worker.default_priority = 10
  6. Delayed::Worker.delay_jobs = !Rails.env.test?
  7. # Delayed::Worker.logger = Logger.new(Rails.root.join('log', 'delayed_job.log'))
  8. # Delayed::Worker.logger.level = Logger::DEBUG