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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 581ee459525ff8cd06451a4f1867e292878266b6638a18b59a3b8f7909eca889
4
- data.tar.gz: c054d0236413287311d79acb1addcd2f01e3f415891c96a30f9dc3c0919a83dc
3
+ metadata.gz: 8c92206b4099b3be756adba01af60f4ef531eaf8cf02a9c9cdd17129214f929c
4
+ data.tar.gz: 29f1e72a6b21d2f1e3d073d8b1bd9f4f2a78e417f69c21c195fc795f62ac4e5c
5
5
  SHA512:
6
- metadata.gz: d52f9217c71d2fc4c9af170570dd317f78ee39e33cd337b77aab84102ca605e56a4fde0cdb1fe9892c3d1e81f2ef67f91f7210e855b81025a57445cced43b66c
7
- data.tar.gz: 81a1991701efaaacf9bfc762fc96919511862a469f5411eb905b1489beefda6b0d244947df731b7c7cb483466ef58af698746ef7e46fbb85dbca05f720df36d9
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.logger.silence do
26
+ GoodJob::Process.with_logger_silenced do
27
27
  @process&.refresh_if_stale(cleanup: true)
28
28
  end
29
29
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module GoodJob
4
4
  # GoodJob gem version.
5
- VERSION = '3.17.1'
5
+ VERSION = '3.17.2'
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.17.1
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-08 00:00:00.000000000 Z
11
+ date: 2023-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activejob