socialforge/config/initializers/delayed_job_config.rb

10 lines
409 B
Ruby
Raw Normal View History

2015-04-10 10:47:41 +08:00
Delayed::Worker.destroy_failed_jobs = false
2015-04-10 16:27:26 +08:00
Delayed::Worker.sleep_delay = 10
2015-04-10 10:47:41 +08:00
Delayed::Worker.max_attempts = 1
Delayed::Worker.max_run_time = 5.minutes
Delayed::Worker.read_ahead = 10
Delayed::Worker.default_queue_name = 'default'
Delayed::Worker.delay_jobs = !Rails.env.test?
Delayed::Worker.raise_signal_exceptions = :term
Delayed::Worker.logger = Logger.new(File.join(Rails.root, 'log', 'delayed_job.log'))