hirefire-resource 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/hirefire-resource.gemspec +1 -1
- data/lib/hirefire/macro/resque.rb +2 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 071eef5dfbd579fa92c75ae256fe83aa5169cf8c
|
4
|
+
data.tar.gz: 566e042e7838b0faabd85b8fb2ff57fa9a421eff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a20bbe4094c924f954d3889316cd85ef808dbacd5d5fc9df7996262d9b85ac45986524992236d95a1f1a122d8e4f0deec5eafd68710d266b48dea14b984af21
|
7
|
+
data.tar.gz: 6cf16d48804582430b4a85dc492732de51dc7ab953d29f97486ce4c39cd7dfc0815c95dc056492a0645ea968c10e57dca39c653608ca17e5a2676f1fb4734fe7
|
data/hirefire-resource.gemspec
CHANGED
@@ -19,6 +19,8 @@ module HireFire
|
|
19
19
|
queues = queues.flatten.map(&:to_s)
|
20
20
|
queues = ::Resque.queues if queues.empty?
|
21
21
|
|
22
|
+
return 0 if queues.empty?
|
23
|
+
|
22
24
|
redis = ::Resque.redis
|
23
25
|
ids = Array(redis.smembers(:workers)).compact
|
24
26
|
raw_jobs = redis.pipelined { ids.map { |id| redis.get("worker:#{id}") } }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hirefire-resource
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael van Rooijen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Load- and schedule-based scaling for web- and worker dynos
|
14
14
|
email: michael@hirefire.io
|
@@ -57,7 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
57
57
|
version: '0'
|
58
58
|
requirements: []
|
59
59
|
rubyforge_project:
|
60
|
-
rubygems_version: 2.6.
|
60
|
+
rubygems_version: 2.6.11
|
61
61
|
signing_key:
|
62
62
|
specification_version: 4
|
63
63
|
summary: Autoscaling for your Heroku dynos
|