good_job 3.15.4 → 3.15.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/lib/good_job/version.rb +1 -1
- data/lib/good_job.rb +4 -2
- 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: b856cbd922ea5a1972ec3d257cdcbc01a51384985b5e7fea5350d603f1629304
|
|
4
|
+
data.tar.gz: 531885ab6153ff8b2dd0c7889cdce82950475cc9a786cdc67a1d61d1bd552806
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6770f8956dd3be246bff36f33196a5adeb12508c997d81e379c95be06036f5f028f875ee8d063ac9896613b92c6e10e5b508efaa05970427dafa08ccd23a9022
|
|
7
|
+
data.tar.gz: 7b08baebc02bddc3b8969c56003e3f8c52e4d40e1974cbe46012ad6e5e8ff4a065e800d4cabda116c638e01b41952168bd3523ea83cf9979fbaec53b8bdbfd28
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [v3.15.5](https://github.com/bensheldon/good_job/tree/v3.15.5) (2023-04-24)
|
|
4
|
+
|
|
5
|
+
[Full Changelog](https://github.com/bensheldon/good_job/compare/v3.15.4...v3.15.5)
|
|
6
|
+
|
|
7
|
+
**Fixed bugs:**
|
|
8
|
+
|
|
9
|
+
- Fix `GoodJob.cleanup_preserved_jobs` to add missing guard for unmigrated discrete executions [\#938](https://github.com/bensheldon/good_job/pull/938) ([bensheldon](https://github.com/bensheldon))
|
|
10
|
+
|
|
11
|
+
**Closed issues:**
|
|
12
|
+
|
|
13
|
+
- Update to 3.15.4 breaks cleanup\_preserved\_jobs [\#937](https://github.com/bensheldon/good_job/issues/937)
|
|
14
|
+
|
|
3
15
|
## [v3.15.4](https://github.com/bensheldon/good_job/tree/v3.15.4) (2023-04-22)
|
|
4
16
|
|
|
5
17
|
[Full Changelog](https://github.com/bensheldon/good_job/compare/v3.15.3...v3.15.4)
|
data/lib/good_job/version.rb
CHANGED
data/lib/good_job.rb
CHANGED
|
@@ -178,8 +178,10 @@ module GoodJob
|
|
|
178
178
|
active_job_ids = jobs_query.pluck(:active_job_id)
|
|
179
179
|
break if active_job_ids.empty?
|
|
180
180
|
|
|
181
|
-
|
|
182
|
-
|
|
181
|
+
if GoodJob::Execution.discrete_support?
|
|
182
|
+
deleted_discrete_executions = GoodJob::DiscreteExecution.where(active_job_id: active_job_ids).delete_all
|
|
183
|
+
deleted_discrete_executions_count += deleted_discrete_executions
|
|
184
|
+
end
|
|
183
185
|
|
|
184
186
|
deleted_executions = GoodJob::Execution.where(active_job_id: active_job_ids).delete_all
|
|
185
187
|
deleted_executions_count += deleted_executions
|
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.15.
|
|
4
|
+
version: 3.15.5
|
|
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-04-
|
|
11
|
+
date: 2023-04-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activejob
|