perfectqueue 0.8.16 → 0.8.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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)
@@ -263,7 +263,7 @@ SQL
263
263
  retry_count += 1
264
264
  if retry_count < MAX_RETRY
265
265
  STDERR.puts err + "\n retrying."
266
- sleep 0.5
266
+ sleep rand
267
267
  retry
268
268
  else
269
269
  STDERR.puts err + "\n abort."
@@ -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 1 second, average 0.5 seoncd
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 }
@@ -1,3 +1,3 @@
1
1
  module PerfectQueue
2
- VERSION = "0.8.16"
2
+ VERSION = "0.8.17"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: perfectqueue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.16
4
+ version: 0.8.17
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: