Permalink
Browse files

Lock for 4 hours and not 5 mins

  • Loading branch information...
1 parent c689bf4 commit bf90faf65419751d79442db392be02fb382695f1 Tobias Lütke committed Jun 21, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/delayed/job.rb
View
@@ -57,7 +57,7 @@ def self.find_available(limit = 5)
# Get the payload of the next job we can get an exclusive lock on.
# If no jobs are left we return nil
- def self.reserve(timeout = 5 * 60)
+ def self.reserve(timeout = 4 * 60 * 60)
# We get up to 5 jobs from the db. In face we cannot get exclusive access to a job we try the next.
# this leads to a more even distribution of jobs across the worker processes

0 comments on commit bf90faf

Please sign in to comment.