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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ee08a99ae7d26df57e3f0a7a64b737e987041815805117ac6d4e6119df229932
4
- data.tar.gz: fd747fed38d2227bde7898438b6d597d55c5cb72f6f7125171b5637aff168d5a
3
+ metadata.gz: b856cbd922ea5a1972ec3d257cdcbc01a51384985b5e7fea5350d603f1629304
4
+ data.tar.gz: 531885ab6153ff8b2dd0c7889cdce82950475cc9a786cdc67a1d61d1bd552806
5
5
  SHA512:
6
- metadata.gz: e32e66f000d6d7cd0a84fd6ab5a7bdf08f2a5f996bd5533ffc11f68ba33ee96e9d4ddc90a64dea1dbfcad43b07b75fcb34ed66c38546cda52b2cd5c0da90a329
7
- data.tar.gz: 8f2a8c72500ee21f634ae6436d12ddc0641e730281b8b9534189f5892b795c6dc3a214e30e4a348878285a8912342dea3fbc74a6ab615a4de5b38f025767db3f
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  module GoodJob
3
3
  # GoodJob gem version.
4
- VERSION = '3.15.4'
4
+ VERSION = '3.15.5'
5
5
  end
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
- deleted_discrete_executions = GoodJob::DiscreteExecution.where(active_job_id: active_job_ids).delete_all
182
- deleted_discrete_executions_count += deleted_discrete_executions
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
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-22 00:00:00.000000000 Z
11
+ date: 2023-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activejob