Skip to content

Commit

Permalink
Reduce the default DELAYED_JOB_MAX_RUNTIME from 20 minutes to 2 minutes.
Browse files Browse the repository at this point in the history
  • Loading branch information
cantino committed Jul 22, 2015
1 parent 6285e30 commit 63bba3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/delayed_job.rb
@@ -1,6 +1,6 @@
Delayed::Worker.destroy_failed_jobs = false
Delayed::Worker.max_attempts = 5
Delayed::Worker.max_run_time = (ENV['DELAYED_JOB_MAX_RUNTIME'].presence || 20).to_i.minutes
Delayed::Worker.max_run_time = (ENV['DELAYED_JOB_MAX_RUNTIME'].presence || 2).to_i.minutes
Delayed::Worker.read_ahead = 5
Delayed::Worker.default_priority = 10
Delayed::Worker.delay_jobs = !Rails.env.test?
Expand Down

0 comments on commit 63bba3a

Please sign in to comment.