hirefire-resource 0.9.0 → 0.9.1
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/README.md +7 -3
- data/hirefire-resource.gemspec +1 -1
- data/lib/hirefire/macro/good_job.rb +2 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ff7c7b164fe5e2bb61f464feda1046fff39f0a100825316dc488bf280f73b0b7
|
|
4
|
+
data.tar.gz: 840da97d1a8463a1ed71e45bd751c57d90ee2b0e428472871e3142d1c8d03c4e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5be7fb8d94c53c24de38fbc2e55dbf4087eac4cfbf6458ca0ec307c502dbdd5b9dec81d932476dac495d9a5ccdb13d9e1a86033f7efc8f32557279a3b94544f0
|
|
7
|
+
data.tar.gz: a8c2af9bb6384b663f27ff9267f5b6703425b269c32e302224d43e4defd47d580ded7a3020eec710cdf555dff24f9b241c15e8cbb5a4550296ef927267e99c9a
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
## [HireFire]
|
|
1
|
+
## [HireFire] - Autoscaling for [Heroku]
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Response times, queue times, job queues, load and schedule-based autoscaling for web and worker dynos on [Heroku].
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -84,8 +84,12 @@ dj_worker: QUEUES=encode,compress bundle exec rake jobs:work
|
|
|
84
84
|
|
|
85
85
|
Now that HireFire will scale both of the these dyno types based on their individual queue sizes. To customize how they scale, log in to the HireFire web interface.
|
|
86
86
|
|
|
87
|
-
Visit the [official website]
|
|
87
|
+
Visit the [official website] for more information!
|
|
88
88
|
|
|
89
89
|
### License
|
|
90
90
|
|
|
91
91
|
hirefire-resource is released under the Apache 2.0 license. See LICENSE.
|
|
92
|
+
|
|
93
|
+
[HireFire]: https://www.hirefire.io/
|
|
94
|
+
[official website]: https://www.hirefire.io/
|
|
95
|
+
[Heroku]: https://www.heroku.com/
|
data/hirefire-resource.gemspec
CHANGED
|
@@ -16,7 +16,8 @@ module HireFire
|
|
|
16
16
|
# @return [Integer] the number of jobs in the queue(s).
|
|
17
17
|
#
|
|
18
18
|
def queue(*queues)
|
|
19
|
-
|
|
19
|
+
base_class = defined?(::GoodJob::Execution) ? ::GoodJob::Execution : ::GoodJob::Job
|
|
20
|
+
scope = base_class.only_scheduled.unfinished
|
|
20
21
|
scope = scope.where(queue_name: queues) if queues.any?
|
|
21
22
|
scope.count
|
|
22
23
|
end
|
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.9.
|
|
4
|
+
version: 0.9.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:
|
|
11
|
+
date: 2021-09-17 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
|
|
@@ -62,7 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
62
62
|
- !ruby/object:Gem::Version
|
|
63
63
|
version: '0'
|
|
64
64
|
requirements: []
|
|
65
|
-
rubygems_version: 3.
|
|
65
|
+
rubygems_version: 3.2.22
|
|
66
66
|
signing_key:
|
|
67
67
|
specification_version: 4
|
|
68
68
|
summary: Autoscaling for your Heroku dynos
|