perfectqueue 0.7.21 → 0.7.22
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 +5 -0
- data/lib/perfectqueue/backend/rdb.rb +1 -1
- data/lib/perfectqueue/version.rb +1 -1
- metadata +1 -1
data/ChangeLog
CHANGED
|
@@ -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 (
|
|
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
|
data/lib/perfectqueue/version.rb
CHANGED