hirefire-resource 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f395466dc5805c8bd4d686f22181e515ac14a600e15e062a8e55d582dc6a0e57
4
- data.tar.gz: ad6fd4856109de19979e8a975f65c0697672f09ccbbc67ef635c1e83384533d0
3
+ metadata.gz: ff7c7b164fe5e2bb61f464feda1046fff39f0a100825316dc488bf280f73b0b7
4
+ data.tar.gz: 840da97d1a8463a1ed71e45bd751c57d90ee2b0e428472871e3142d1c8d03c4e
5
5
  SHA512:
6
- metadata.gz: fff67ee5f1bb27f874fbb2f401681ab1fb37c6904f62ac10ab42fb38b256ba1f8638407fc78f914e3aa40c5178c6bffff95a0a40dfab4882aa2726fc815bf8a0
7
- data.tar.gz: 52cc6314c95f940140afb1798e2afac18c4cbc7a494f8cc6ea4e3a111aee6fa53876dcb9f85f924a02e843eb560cbc7b755f3ed7e5522d00f1b23f7727e7c70c
6
+ metadata.gz: 5be7fb8d94c53c24de38fbc2e55dbf4087eac4cfbf6458ca0ec307c502dbdd5b9dec81d932476dac495d9a5ccdb13d9e1a86033f7efc8f32557279a3b94544f0
7
+ data.tar.gz: a8c2af9bb6384b663f27ff9267f5b6703425b269c32e302224d43e4defd47d580ded7a3020eec710cdf555dff24f9b241c15e8cbb5a4550296ef927267e99c9a
data/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
- ## v0.9.0/master
1
+ ## v0.9.1
2
+
3
+ * Support GoodJob > 2.2 where Job class is renamed to Execution
4
+
5
+ ## v0.9.0
2
6
 
3
7
  * Add `skip_working` to Sidekiq macro
4
8
  * Use separate queries for Que 0.x and 1.x
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
- ## [HireFire](https://www.hirefire.io/) - Autoscaling for your Heroku dynos
1
+ ## [HireFire] - Autoscaling for [Heroku]
2
2
 
3
- Load-based scaling, schedule-based scaling, dyno crash recovery, for [Heroku](https://www.heroku.com/) web- and worker dynos.
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](https://www.hirefire.io/) for more information!
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/
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = "hirefire-resource"
3
- gem.version = "0.9.0"
3
+ gem.version = "0.9.1"
4
4
  gem.platform = Gem::Platform::RUBY
5
5
  gem.authors = "Michael van Rooijen"
6
6
  gem.email = "michael@hirefire.io"
@@ -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
- scope = ::GoodJob::Job.only_scheduled.unfinished
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.0
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: 2020-10-17 00:00:00.000000000 Z
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.1.2
65
+ rubygems_version: 3.2.22
66
66
  signing_key:
67
67
  specification_version: 4
68
68
  summary: Autoscaling for your Heroku dynos