```ruby
Delayed::Worker.logger = Logger.new(File.join(Rails.root, 'log', 'dj.log'))
Delayed::Worker.destroy_failed_jobs = false
Delayed::Worker.sleep_delay = Rails.env.development? ? 1 : 60
Delayed::Worker.max_attempts = 3
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.auto_flushing = true
```

Increase polling frequency to avoid delays sending emails
user
```ruby
Delayed::Worker.logger = Logger.new(File.join(Rails.root, 'log', 'dj.log'))
Delayed::Worker.destroy_failed_jobs = false
Delayed::Worker.sleep_delay = Rails.env.development? ? 1 : 10
Delayed::Worker.max_attempts = 3
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.auto_flushing = true
```
assistant