Delayed::Worker.destroy_failed_jobs = false Delayed::Worker.logger = Logger.new(File.join(Rails.root, 'log', 'delayed_job.log'))