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 +4 -4
- data/CHANGELOG.md +25 -0
- data/README.md +1 -1
- data/app/models/good_job/process.rb +2 -1
- data/lib/good_job/active_job_extensions/labels.rb +1 -1
- data/lib/good_job/capsule_tracker.rb +4 -2
- 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: a364e0b15db11b43f23fcdca6e3679a8bd759a4193d268a19ecc4bac75ac46a8
|
4
|
+
data.tar.gz: a791c739aeb74c54998b356f44016a5b2be4dc703f7278826cc208cbaf43dd46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
@@ -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
|
-
|
147
|
-
|
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
|
|
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.29.
|
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-
|
11
|
+
date: 2024-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activejob
|