public
Description: Database based asynchronously priority queue system -- Extracted from Shopify
Homepage: http://www.shopify.com
Clone URL: git://github.com/tobi/delayed_job.git
Lock for 4 hours and not 5 mins
Tobias Lütke (author)
Fri Jun 20 23:48:38 -0700 2008
commit  bf90faf65419751d79442db392be02fb382695f1
tree    342cf78d3943f46b03f9b6b06960001204c9a1b6
parent  c689bf431ddb67bf9f87548f888cb288c4cad3a9
...
57
58
59
60
 
61
62
63
...
57
58
59
 
60
61
62
63
0
@@ -57,7 +57,7 @@ module Delayed
0
                                                                              
0
     # Get the payload of the next job we can get an exclusive lock on.
0
     # If no jobs are left we return nil
0
- def self.reserve(timeout = 5 * 60)
0
+ def self.reserve(timeout = 4 * 60 * 60)
0
                     
0
       # We get up to 5 jobs from the db. In face we cannot get exclusive access to a job we try the next.
0
       # this leads to a more even distribution of jobs across the worker processes

Comments

    No one has commented yet.