good_job 3.12.2 → 3.12.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 +28 -0
- data/app/models/good_job/batch_record.rb +9 -2
- data/lib/generators/good_job/templates/update/migrations/03_create_index_good_jobs_jobs_on_priority_created_at_when_unfinished.rb.erb +1 -1
- data/lib/good_job/adapter.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: cbd9eea98505960c1c53863338762b4c814d2248caf2642fc5774e1fbc19fc1c
|
4
|
+
data.tar.gz: 2c84f9908144e29f509355010d0d9daf2c6ebda1360c411f41328e6a25c45aad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68e5e4df608a70845510c9790c10b350f1d5bf960f5574de146278d3e9a9b95270cd96116c70428815fd3e06ecab789566e82c5eaabdb64a9fdc07f7f9555d94
|
7
|
+
data.tar.gz: c56b476a28edd728c6791bb61f53e8f9c073c865301dd7a8cbf40b3f432a2eb9db5e5fe48e268b7c454b4f242f5f27c1bbcf866e2924a6150ec7f8f1a0148f58
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,33 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [v3.12.4](https://github.com/bensheldon/good_job/tree/v3.12.4) (2023-02-24)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/bensheldon/good_job/compare/v3.12.3...v3.12.4)
|
6
|
+
|
7
|
+
**Closed issues:**
|
8
|
+
|
9
|
+
- Rails 7.1 - Serialized columns like a store now needs a `coder: JSON` [\#863](https://github.com/bensheldon/good_job/issues/863)
|
10
|
+
- Does good\_job automatically retry on ActiveRecord::LockWaitTimeout? [\#860](https://github.com/bensheldon/good_job/issues/860)
|
11
|
+
- race condition for batches callback [\#832](https://github.com/bensheldon/good_job/issues/832)
|
12
|
+
|
13
|
+
**Merged pull requests:**
|
14
|
+
|
15
|
+
- Add serialize coder kwarg for Rails 7.1-alpha [\#864](https://github.com/bensheldon/good_job/pull/864) ([bensheldon](https://github.com/bensheldon))
|
16
|
+
|
17
|
+
## [v3.12.3](https://github.com/bensheldon/good_job/tree/v3.12.3) (2023-02-21)
|
18
|
+
|
19
|
+
[Full Changelog](https://github.com/bensheldon/good_job/compare/v3.12.2...v3.12.3)
|
20
|
+
|
21
|
+
**Closed issues:**
|
22
|
+
|
23
|
+
- \[Not Critical\] Too much space \(One\) in db/migrate/XXXXXX\_create\_index\_good\_jobs\_jobs\_on\_priority\_created\_at\_when\_unfinished.rb [\#851](https://github.com/bensheldon/good_job/issues/851)
|
24
|
+
- Use timestamps with timezone when set as the default for postgresql. [\#668](https://github.com/bensheldon/good_job/issues/668)
|
25
|
+
|
26
|
+
**Merged pull requests:**
|
27
|
+
|
28
|
+
- Fix bug where notification check does not use configuration [\#857](https://github.com/bensheldon/good_job/pull/857) ([mitchellhenke](https://github.com/mitchellhenke))
|
29
|
+
- Fix template for the update migrations 03 index \(\#851\) [\#852](https://github.com/bensheldon/good_job/pull/852) ([julienanne](https://github.com/julienanne))
|
30
|
+
|
3
31
|
## [v3.12.2](https://github.com/bensheldon/good_job/tree/v3.12.2) (2023-02-16)
|
4
32
|
|
5
33
|
[Full Changelog](https://github.com/bensheldon/good_job/compare/v3.12.1...v3.12.2)
|
@@ -72,8 +72,15 @@ module GoodJob
|
|
72
72
|
end
|
73
73
|
end
|
74
74
|
|
75
|
-
|
76
|
-
|
75
|
+
if Rails.gem_version < Gem::Version.new('6.1.0.alpha')
|
76
|
+
# serialize does not yet take a default value, must set via Attributes API
|
77
|
+
attribute :serialized_properties, :json, default: -> { {} }
|
78
|
+
serialize :serialized_properties, PropertySerializer
|
79
|
+
elsif Rails.gem_version < Gem::Version.new('7.1.0.alpha')
|
80
|
+
serialize :serialized_properties, PropertySerializer, default: -> { {} }
|
81
|
+
else
|
82
|
+
serialize :serialized_properties, coder: PropertySerializer, default: -> { {} }
|
83
|
+
end
|
77
84
|
alias_attribute :properties, :serialized_properties
|
78
85
|
|
79
86
|
def properties=(value)
|
data/lib/good_job/adapter.rb
CHANGED
@@ -234,8 +234,8 @@ module GoodJob
|
|
234
234
|
end
|
235
235
|
|
236
236
|
def send_notify?(active_job)
|
237
|
-
return true unless active_job.respond_to?(:good_job_notify)
|
238
237
|
return false unless GoodJob.configuration.enable_listen_notify
|
238
|
+
return true unless active_job.respond_to?(:good_job_notify)
|
239
239
|
|
240
240
|
!(active_job.good_job_notify == false || (active_job.class.good_job_notify == false && active_job.good_job_notify.nil?))
|
241
241
|
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.12.
|
4
|
+
version: 3.12.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-02-
|
11
|
+
date: 2023-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activejob
|