Skip to content

Commit e62a79b

Browse files
committed
fix: increase max_run_time for delayed job
This hopefully fixes the timeouts that we're seeing in https://app.rollbar.com/a/codebar-production/fix/item/codebar-production/640/occurrence/449286860545#detail
1 parent c0b5341 commit e62a79b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

config/initializers/delayed_job.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
Delayed::Worker.destroy_failed_jobs = false
22
Delayed::Worker.sleep_delay = 60
33
Delayed::Worker.max_attempts = 3
4-
Delayed::Worker.max_run_time = 5.minutes
4+
5+
# The rake jobs:workoff task in Heroku scheduler is configured to run every 10 minutes
6+
Delayed::Worker.max_run_time = 9.minutes
7+
58
Delayed::Worker.read_ahead = 10
69
Delayed::Worker.default_queue_name = 'default'
710
Delayed::Worker.delay_jobs = !Rails.env.test?

0 commit comments

Comments
 (0)