good_job 3.17.1 → 3.17.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +18 -1
- data/app/models/good_job/base_record.rb +12 -0
- data/lib/good_job/notifier/process_heartbeat.rb +1 -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: 8c92206b4099b3be756adba01af60f4ef531eaf8cf02a9c9cdd17129214f929c
|
4
|
+
data.tar.gz: 29f1e72a6b21d2f1e3d073d8b1bd9f4f2a78e417f69c21c195fc795f62ac4e5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2906c0b22dc6f6b0f0e78c607467533598e84dce2a29e654321293da877f1afd09ee59afd534d7a7b7f1481ae796d111b2492f62ec2cddcde843442e4262adbe
|
7
|
+
data.tar.gz: 0e8107f018f836e0d15f5836d93ebb8bdbe6e36381cba63680113302e3125f1a49d9aba5e05a2124ce50ec51cbfde7059ebed30b3cc5b64d859ce16867ae2c5e
|
data/CHANGELOG.md
CHANGED
@@ -1,12 +1,29 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [v3.17.2](https://github.com/bensheldon/good_job/tree/v3.17.2) (2023-08-10)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/bensheldon/good_job/compare/v3.17.1...v3.17.2)
|
6
|
+
|
7
|
+
**Fixed bugs:**
|
8
|
+
|
9
|
+
- 3.17.0 breaks health check endpoints [\#1033](https://github.com/bensheldon/good_job/issues/1033)
|
10
|
+
- Fix NoMethodError: undefined method `silence' for nil:NilClass [\#1037](https://github.com/bensheldon/good_job/pull/1037) ([afn](https://github.com/afn))
|
11
|
+
|
12
|
+
**Closed issues:**
|
13
|
+
|
14
|
+
- NoMethodError in ProcessHeartbeat if ActiveRecord logger is nil [\#1036](https://github.com/bensheldon/good_job/issues/1036)
|
15
|
+
- JRuby deprecation policy [\#1035](https://github.com/bensheldon/good_job/issues/1035)
|
16
|
+
|
17
|
+
**Merged pull requests:**
|
18
|
+
|
19
|
+
- Add helpful failure output for Sorbet linter [\#1038](https://github.com/bensheldon/good_job/pull/1038) ([bensheldon](https://github.com/bensheldon))
|
20
|
+
|
3
21
|
## [v3.17.1](https://github.com/bensheldon/good_job/tree/v3.17.1) (2023-08-08)
|
4
22
|
|
5
23
|
[Full Changelog](https://github.com/bensheldon/good_job/compare/v3.17.0...v3.17.1)
|
6
24
|
|
7
25
|
**Fixed bugs:**
|
8
26
|
|
9
|
-
- 3.17.0 breaks health check endpoints [\#1033](https://github.com/bensheldon/good_job/issues/1033)
|
10
27
|
- Fix Probe Server by retrying IO.select instead of returning early [\#1034](https://github.com/bensheldon/good_job/pull/1034) ([bensheldon](https://github.com/bensheldon))
|
11
28
|
|
12
29
|
**Closed issues:**
|
@@ -28,6 +28,18 @@ module GoodJob
|
|
28
28
|
false
|
29
29
|
end
|
30
30
|
|
31
|
+
# Runs the block with self.logger silenced.
|
32
|
+
# If self.logger is nil, simply runs the block.
|
33
|
+
def self.with_logger_silenced(&block)
|
34
|
+
# Assign to a local variable, just in case it's modified in another thread concurrently
|
35
|
+
logger = self.logger
|
36
|
+
if logger
|
37
|
+
logger.silence(&block)
|
38
|
+
else
|
39
|
+
yield
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
31
43
|
ActiveSupport.run_load_hooks(:good_job_base_record, self)
|
32
44
|
end
|
33
45
|
end
|
@@ -23,7 +23,7 @@ module GoodJob # :nodoc:
|
|
23
23
|
def refresh_process
|
24
24
|
Rails.application.executor.wrap do
|
25
25
|
GoodJob::Process.with_connection(connection) do
|
26
|
-
GoodJob::Process.
|
26
|
+
GoodJob::Process.with_logger_silenced do
|
27
27
|
@process&.refresh_if_stale(cleanup: true)
|
28
28
|
end
|
29
29
|
end
|
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.17.
|
4
|
+
version: 3.17.2
|
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-08-
|
11
|
+
date: 2023-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activejob
|