Commit fa1fa8c1bb94daacde0b02fa3d9927dd1771769f

Authored by Rodrigo Souto
1 parent 0118b9dd

delayed_job: let max_run_time be the default value

There are some jobs that may take more than 10 minutes like the
spaminator or the cache counter updater, will use the default
max_run_time which is now 4 hours.

(ActionItem3039)
Showing 1 changed file with 0 additions and 1 deletions   Show diff stats
config/initializers/delayed_job_config.rb
1 Delayed::Worker.backend = :active_record 1 Delayed::Worker.backend = :active_record
2 Delayed::Worker.max_attempts = 2 2 Delayed::Worker.max_attempts = 2
3 -Delayed::Worker.max_run_time = 10.minutes  
4 3
5 class Delayed::Worker 4 class Delayed::Worker
6 def handle_failed_job_with_loggin(job, error) 5 def handle_failed_job_with_loggin(job, error)