perfectqueue 0.7.21 → 0.7.22

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -1,4 +1,9 @@
1
1
 
2
+ == 2012-07-19 version 0.7.22
3
+
4
+ * Fixed RDBBackend SQL
5
+
6
+
2
7
  == 2012-07-19 version 0.7.21
3
8
 
4
9
  * Added max_running column for fair resource restriction
@@ -23,7 +23,7 @@ LEFT JOIN (
23
23
  WHERE timeout > ? AND created_at IS NOT NULL AND resource IS NOT NULL
24
24
  GROUP BY resource
25
25
  ) AS R ON resource = res
26
- WHERE timeout <= ? AND (runnable IS NULL OR runnable > 0)
26
+ WHERE timeout <= ? AND (max_running-running IS NULL OR max_running-running > 0)
27
27
  ORDER BY runnable IS NOT NULL, runnable DESC, timeout ASC
28
28
  LIMIT #{MAX_SELECT_ROW}
29
29
  SQL
@@ -1,5 +1,5 @@
1
1
  module PerfectQueue
2
2
 
3
- VERSION = '0.7.21'
3
+ VERSION = '0.7.22'
4
4
 
5
5
  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.7.21
4
+ version: 0.7.22
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: