good_job 3.19.3 → 3.19.4

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: cb4912917e34844ff32647321159e6c45ea03d962d94b10ee28186cceab9371b
4
- data.tar.gz: 1fb418aa9060e1e5781e044fb33ea27be557e1cc171cb82fe78fc1cb345c3e48
3
+ metadata.gz: 7b2fd15bbee1a5d3cbe17a0154fa15fdd960c9b5fc39a55b60831792095538e0
4
+ data.tar.gz: 831a78bc9a7e569fb72601f817bb4397b702ad89dc4f1e5776b3c8fc28ab042e
5
5
  SHA512:
6
- metadata.gz: ad52e1fe639545fcf8d3ef4d3a3e70727493edf397127bda1a68b10535511033620cb7dcc3945c352a1203e765882ac741bf4c4333d9a976f2e9863dc4ce1c11
7
- data.tar.gz: 6a6851b391e7651f404ddf42c067d5e2d74380775514799ac159c93f1d63748dc4025fb89e89c1af6f5db8cd14acf3f071dc6354bd3956c8ba7abe0eb29a2674
6
+ metadata.gz: c598627e0a4999e7faef09edb7c286344019a4c20fb7cf952bf0026a2247aa1f4aef4f9e9530e8cc105ec502cbf258f41f58ad5a1ec62ce7e2453f8dd4f0f92c
7
+ data.tar.gz: 40dfbac0623a460c22f55889cd80bccc77a7391c3c05b42692267424c136af3224d20d042735906dca506540a699a5f7a592d8eda16ff79255089fc15b390829
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## [v3.19.4](https://github.com/bensheldon/good_job/tree/v3.19.4) (2023-10-04)
4
+
5
+ [Full Changelog](https://github.com/bensheldon/good_job/compare/v3.19.3...v3.19.4)
6
+
7
+ **Closed issues:**
8
+
9
+ - Including GoodJob::ActiveJobExtensions::Concurrency triggers rails deprecation notice [\#1096](https://github.com/bensheldon/good_job/issues/1096)
10
+ - Add retries exhaused callback [\#1080](https://github.com/bensheldon/good_job/issues/1080)
11
+
12
+ **Merged pull requests:**
13
+
14
+ - Address rails 7.1 deprecation when using `ActiveJobExtensions::Concurrency` [\#1097](https://github.com/bensheldon/good_job/pull/1097) ([Earlopain](https://github.com/Earlopain))
15
+
3
16
  ## [v3.19.3](https://github.com/bensheldon/good_job/tree/v3.19.3) (2023-09-28)
4
17
 
5
18
  [Full Changelog](https://github.com/bensheldon/good_job/compare/v3.19.2...v3.19.3)
data/README.md CHANGED
@@ -816,7 +816,7 @@ GoodJob.on_thread_error = -> (exception) { Rails.error.report(exception) }
816
816
 
817
817
  By default, GoodJob relies on ActiveJob's retry functionality.
818
818
 
819
- ActiveJob can be configured to retry an infinite number of times, with an exponential backoff. Using ActiveJob's `retry_on` prevents exceptions from reaching GoodJob:
819
+ ActiveJob can be configured to retry an infinite number of times, with a polynomial backoff. Using ActiveJob's `retry_on` prevents exceptions from reaching GoodJob:
820
820
 
821
821
  ```ruby
822
822
  class ApplicationJob < ActiveJob::Base
@@ -36,10 +36,16 @@ module GoodJob
36
36
  end
37
37
  end
38
38
 
39
+ wait_key = if ActiveJob.gem_version >= Gem::Version.new("7.1.0.a")
40
+ :polynomially_longer
41
+ else
42
+ :exponentially_longer
43
+ end
44
+
39
45
  retry_on(
40
46
  GoodJob::ActiveJobExtensions::Concurrency::ConcurrencyExceededError,
41
47
  attempts: Float::INFINITY,
42
- wait: :exponentially_longer
48
+ wait: wait_key
43
49
  )
44
50
 
45
51
  before_perform do |job|
@@ -2,7 +2,7 @@
2
2
 
3
3
  module GoodJob
4
4
  # GoodJob gem version.
5
- VERSION = '3.19.3'
5
+ VERSION = '3.19.4'
6
6
 
7
7
  # GoodJob version as Gem::Version object
8
8
  GEM_VERSION = Gem::Version.new(VERSION)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: good_job
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.19.3
4
+ version: 3.19.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Sheldon
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-09-28 00:00:00.000000000 Z
11
+ date: 2023-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activejob