good_job 3.28.1 → 3.28.2

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: 3bbf6aa5c2cdbc7b2ff5b5f7dd31a219140934b799737c192aa8de55e5030bca
4
- data.tar.gz: 1f7c614722781287cf6482af08fe97d4af5305fdfbd7583ce343277b7b8fe5a1
3
+ metadata.gz: c01c931bf907016e2758a52326884136539fd860a0aa29582afbdf522c64dabf
4
+ data.tar.gz: 6e20623d0020c15e447bc9b1857587856e9abea6e698bed98d3e748ebe3bcf4f
5
5
  SHA512:
6
- metadata.gz: 3f97f043eed52700808203c42ab9a714a7fdefdd33f3a201045a9a1649e675de6305386439f4707788a89842993902187c21b89939e4458e6a1750d25d6972d1
7
- data.tar.gz: a3591c147f153964a0d929d8b49c43386b9f03bf53414471eed55d5312d9bb72e0fbd0ee49b966519570b4a13f33d4fa5ddda91c47d6fa31342af928cfa8185a
6
+ metadata.gz: 43f9fd7ecdc6c293d3b2147da775fb8eaf187d49b003eaf999efa39b6401cdd255dcd6496202611b486f665b2063c56d66f825c8f33928260261ea79c2766789
7
+ data.tar.gz: 68205cc3bdb56ffde237eee3c2dff33fc287f7043bf3c84691be0a0957ec9fc56a21899ca4f56eb1f2482f959cfe217640c9094989887d57d9b13c7433244285
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## [v3.28.2](https://github.com/bensheldon/good_job/tree/v3.28.2) (2024-04-26)
4
+
5
+ [Full Changelog](https://github.com/bensheldon/good_job/compare/v3.28.1...v3.28.2)
6
+
7
+ **Fixed bugs:**
8
+
9
+ - Add debug warning message when a job is enqueued within a batch/bulk capture but not to the GoodJob Adapter [\#1339](https://github.com/bensheldon/good_job/pull/1339) ([bensheldon](https://github.com/bensheldon))
10
+
11
+ **Closed issues:**
12
+
13
+ - How do I add jobs to an existing batch? [\#1337](https://github.com/bensheldon/good_job/issues/1337)
14
+ - Executing perform\_now on a good\_job with GoodJobs::ActiveJobExtensions::Concurrency can run twice [\#1335](https://github.com/bensheldon/good_job/issues/1335)
15
+
3
16
  ## [v3.28.1](https://github.com/bensheldon/good_job/tree/v3.28.1) (2024-04-24)
4
17
 
5
18
  [Full Changelog](https://github.com/bensheldon/good_job/compare/v3.28.0...v3.28.1)
@@ -10,7 +23,6 @@
10
23
 
11
24
  **Closed issues:**
12
25
 
13
- - Executing perform\_now on a good\_job with GoodJobs::ActiveJobExtensions::Concurrency can run twice [\#1335](https://github.com/bensheldon/good_job/issues/1335)
14
26
  - `erb_lint` doesn't lint all files [\#1329](https://github.com/bensheldon/good_job/issues/1329)
15
27
  - Server hangs after \#1297 [\#1301](https://github.com/bensheldon/good_job/issues/1301)
16
28
  - Figure out how to use bind parameters for time queries [\#1285](https://github.com/bensheldon/good_job/issues/1285)
@@ -5,6 +5,12 @@ module GoodJob
5
5
  module Batches
6
6
  extend ActiveSupport::Concern
7
7
 
8
+ included do
9
+ before_enqueue do |job|
10
+ GoodJob.logger.debug("#{job.class} was enqueued within a batch or bulk capture block but is not using the GoodJob Adapter; the job will not appear in GoodJob.") if (GoodJob::Bulk.current_buffer || GoodJob::Batch.current_batch_id) && !job.class.queue_adapter.is_a?(GoodJob::Adapter)
11
+ end
12
+ end
13
+
8
14
  def batch
9
15
  @_batch ||= CurrentThread.execution&.batch&.to_batch if CurrentThread.execution.present? && CurrentThread.execution.active_job_id == job_id
10
16
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module GoodJob
4
4
  # GoodJob gem version.
5
- VERSION = '3.28.1'
5
+ VERSION = '3.28.2'
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.28.1
4
+ version: 3.28.2
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-04-24 00:00:00.000000000 Z
11
+ date: 2024-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activejob