good_job 3.29.1 → 3.29.3

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: f777da5778d92df1d68922053e5d86cd66a8f80b219fe4cffb2471e663001a14
4
- data.tar.gz: 33152c0856ffd2c9a8fa1f1ea8d3f9ed27852f1a5be551dfd91dc74c8c565a07
3
+ metadata.gz: a364e0b15db11b43f23fcdca6e3679a8bd759a4193d268a19ecc4bac75ac46a8
4
+ data.tar.gz: a791c739aeb74c54998b356f44016a5b2be4dc703f7278826cc208cbaf43dd46
5
5
  SHA512:
6
- metadata.gz: 7ba5a1b6b2ffbd6104a83da07e8bb89cc3969b0fc0859bb6e1f82bdface0f505bee1140c7f00c3aa9322677969c202ed8af339f1960de45c433f47e080bb05c7
7
- data.tar.gz: 5d596a9d8bee5e882cf69ae796a6593068d75850b34bd40626d9d55f4fefe9e47633b9580100ace46c805e1c04287ccd455e8a7dd8b1b9ea490f100400f5c1eb
6
+ metadata.gz: 86c3b4dbd66ddf1a8deb56e3cdbdaad1992b429a74ae39df8216064e0b2a91a6d1f61e8a738e6dd972748eddb20bb3c6c9cd1a7514480090a8acec02c833efb3
7
+ data.tar.gz: 19ff67784872068e66f8ca528375937074376aede673f4e27877534aa8020714c88a25a2e030d98cc6a951410d5b4efe49b6470d5b440eb7c2d77fb8b446de48
data/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # Changelog
2
2
 
3
+ ## [v3.29.3](https://github.com/bensheldon/good_job/tree/v3.29.3) (2024-06-06)
4
+
5
+ [Full Changelog](https://github.com/bensheldon/good_job/compare/v3.29.2...v3.29.3)
6
+
7
+ **Fixed bugs:**
8
+
9
+ - Synchronize `CapsuleTracker#renew` [\#1369](https://github.com/bensheldon/good_job/pull/1369) ([bensheldon](https://github.com/bensheldon))
10
+
11
+ **Closed issues:**
12
+
13
+ - docs: Basic auth route mount example improvement [\#1368](https://github.com/bensheldon/good_job/issues/1368)
14
+ - Tips for debugging/optimizing slow dashboard? \(45 second response time\) [\#1366](https://github.com/bensheldon/good_job/issues/1366)
15
+
16
+ ## [v3.29.2](https://github.com/bensheldon/good_job/tree/v3.29.2) (2024-05-23)
17
+
18
+ [Full Changelog](https://github.com/bensheldon/good_job/compare/v3.29.1...v3.29.2)
19
+
20
+ **Fixed bugs:**
21
+
22
+ - Fix label modifications on job instance polluting labels on job class [\#1355](https://github.com/bensheldon/good_job/pull/1355) ([bensheldon](https://github.com/bensheldon))
23
+
24
+ **Closed issues:**
25
+
26
+ - `#good_job_labels` retains values across job instances [\#1354](https://github.com/bensheldon/good_job/issues/1354)
27
+
3
28
  ## [v3.29.1](https://github.com/bensheldon/good_job/tree/v3.29.1) (2024-05-23)
4
29
 
5
30
  [Full Changelog](https://github.com/bensheldon/good_job/compare/v3.29.0...v3.29.1)
data/README.md CHANGED
@@ -404,7 +404,7 @@ GoodJob includes a Dashboard as a mountable `Rails::Engine`.
404
404
  ```ruby
405
405
  # config/initializers/good_job.rb
406
406
  GoodJob::Engine.middleware.use(Rack::Auth::Basic) do |username, password|
407
- ActiveSupport::SecurityUtils.secure_compare(Rails.application.credentials.good_job_username, username) &&
407
+ ActiveSupport::SecurityUtils.secure_compare(Rails.application.credentials.good_job_username, username) &
408
408
  ActiveSupport::SecurityUtils.secure_compare(Rails.application.credentials.good_job_password, password)
409
409
  end
410
410
  ```
@@ -101,7 +101,8 @@ module GoodJob # :nodoc:
101
101
 
102
102
  def refresh
103
103
  self.state = self.class.process_state
104
- reload.update(state: state, updated_at: Time.current)
104
+ reload # verify the record still exists in the database
105
+ update(state: state, updated_at: Time.current)
105
106
  rescue ActiveRecord::RecordNotFound
106
107
  @new_record = true
107
108
  self.created_at = self.updated_at = nil
@@ -8,7 +8,7 @@ module GoodJob
8
8
  module Prepends
9
9
  def initialize(*arguments)
10
10
  super
11
- self.good_job_labels = Array(self.class.good_job_labels)
11
+ self.good_job_labels = Array(self.class.good_job_labels.dup)
12
12
  end
13
13
 
14
14
  def enqueue(options = {})
@@ -143,8 +143,10 @@ module GoodJob # :nodoc:
143
143
  # @param silent [Boolean] Whether to silence logging.
144
144
  # @return [void]
145
145
  def renew(silent: false)
146
- GoodJob::Process.with_logger_silenced(silent: silent) do
147
- @record&.refresh_if_stale(cleanup: true)
146
+ synchronize do
147
+ GoodJob::Process.with_logger_silenced(silent: silent) do
148
+ @record&.refresh_if_stale(cleanup: true)
149
+ end
148
150
  end
149
151
  end
150
152
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  module GoodJob
4
4
  # GoodJob gem version.
5
- VERSION = '3.29.1'
5
+ VERSION = '3.29.3'
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.29.1
4
+ version: 3.29.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Sheldon
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-23 00:00:00.000000000 Z
11
+ date: 2024-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activejob