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 +4 -4
- data/CHANGELOG.md +13 -0
- data/README.md +1 -1
- data/lib/good_job/active_job_extensions/concurrency.rb +7 -1
- data/lib/good_job/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b2fd15bbee1a5d3cbe17a0154fa15fdd960c9b5fc39a55b60831792095538e0
|
4
|
+
data.tar.gz: 831a78bc9a7e569fb72601f817bb4397b702ad89dc4f1e5776b3c8fc28ab042e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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:
|
48
|
+
wait: wait_key
|
43
49
|
)
|
44
50
|
|
45
51
|
before_perform do |job|
|
data/lib/good_job/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2023-10-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activejob
|