perfectqueue 0.8.16 → 0.8.17
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +7 -0
- data/lib/perfectqueue/backend/rdb_compat.rb +1 -1
- data/lib/perfectqueue/engine.rb +1 -1
- data/lib/perfectqueue/version.rb +1 -1
- metadata +1 -1
data/ChangeLog
CHANGED
@@ -1,4 +1,11 @@
|
|
1
1
|
|
2
|
+
== 2012-09-03 version 0.8.17
|
3
|
+
|
4
|
+
* Increased wait time before starting processors to 1 second at average and
|
5
|
+
2 seconds at maximum
|
6
|
+
* rdb_compat backend waits random seconds after detecting deadlocks
|
7
|
+
|
8
|
+
|
2
9
|
== 2012-09-03 version 0.8.16
|
3
10
|
|
4
11
|
* Support task_prefetch option (default = 0, meaning no-prefetch)
|
data/lib/perfectqueue/engine.rb
CHANGED
@@ -78,7 +78,7 @@ module PerfectQueue
|
|
78
78
|
c.keepalive
|
79
79
|
# add wait time before starting processors to avoid
|
80
80
|
# a spike of the number of concurrent connections.
|
81
|
-
sleep rand # upto
|
81
|
+
sleep rand*2 # upto 2 second, average 1 seoncd
|
82
82
|
}
|
83
83
|
until @finish_flag.set?
|
84
84
|
@processors.each {|c| c.keepalive }
|
data/lib/perfectqueue/version.rb
CHANGED