bipbip 0.7.8 → 0.7.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bipbip/plugin/gearman.rb +2 -1
- data/lib/bipbip/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d135f5044ba55cbbfc4fc02b01b1a4f8185059a
|
4
|
+
data.tar.gz: 45041cdcd5993efb4d755f34713686c9261172fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3ef917453fbafbd8986f0a1e9f31b53f4d0202f57b95e88312e3e59bf702e0ee2d972d7367a6c192308cf8e3b5490851267900378ec9ee861ce5afff65938b5
|
7
|
+
data.tar.gz: aea4339262650758e43d6aebc67ffbc004b1a3680f495344c2d241db8c5bd5e10513c6f20f6e692a649f4cec894ee7a11c2a7ce06969c830b38d1e9d40167c4f
|
@@ -66,7 +66,8 @@ module Bipbip
|
|
66
66
|
|
67
67
|
stats = Hash.new(0)
|
68
68
|
|
69
|
-
|
69
|
+
mysql_table = config['mysql_table'] || 'gearman_queue'
|
70
|
+
mysql.query("SELECT priority, count(priority) as jobs_count FROM #{mysql_table} GROUP by priority").each do |row|
|
70
71
|
stats[row['priority']] = row['jobs_count']
|
71
72
|
end
|
72
73
|
|
data/lib/bipbip/version.rb
CHANGED