good_job 3.15.8 → 3.15.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 49215c024094f667286ca6d15541b8b3d7c046e3f78155a0533e8941e75d2cf9
4
- data.tar.gz: 89520dcc01d3a2ffd023077f8e0ba049c9e55f39fc5cfddd1babb70bf7b716a9
3
+ metadata.gz: 000bb49d312d0103d77ce95d27e79316b7ee66b1056e0566cc1029272442c77a
4
+ data.tar.gz: f990fccc402be6ac4dca1e2c8c8f3f57c2a73b00d5c1a065afa1d9ca6645f602
5
5
  SHA512:
6
- metadata.gz: ed47837b028707b3f6660aba678f0e20a475c2fa56144eedf06edd70c186c1ba08ea8223fd388840c58a6fa2cec75ffb322c386aa93f18ab086ee1ded58e48fb
7
- data.tar.gz: 75b05c5abf5cee0a87634371a91c838c86b336c4dcde84d205b6b86748e2e0123b6719d001f78d18d08fd1e8b5f0e96d1a1155e42d7943c9c730697724396bce
6
+ metadata.gz: db26d83de8e6f07447d1ae866ea065a4b8beb37bd9c93d726929b8d0972ba0f862efd641128bffe35e964fcf2589459d60f57751f4b20d7ab16fc1daeb35a82e
7
+ data.tar.gz: aae23731a957a0418f13eadc9e2deab3f5378286cb3e40c00f2cf0341dd99d1a0a73f49873835f14c7e2032a4a1738310038752da8e270ac0864591c662811ad
data/CHANGELOG.md CHANGED
@@ -1,16 +1,49 @@
1
1
  # Changelog
2
2
 
3
+ ## [v3.15.10](https://github.com/bensheldon/good_job/tree/v3.15.10) (2023-05-22)
4
+
5
+ [Full Changelog](https://github.com/bensheldon/good_job/compare/v3.15.9...v3.15.10)
6
+
7
+ **Fixed bugs:**
8
+
9
+ - Ensure migration warning for `DiscreteExecution` constant is in explicit `GoodJob::` namespace [\#963](https://github.com/bensheldon/good_job/pull/963) ([bensheldon](https://github.com/bensheldon))
10
+
11
+ **Closed issues:**
12
+
13
+ - uninitialized constant DiscreteExecution [\#962](https://github.com/bensheldon/good_job/issues/962)
14
+
15
+ ## [v3.15.9](https://github.com/bensheldon/good_job/tree/v3.15.9) (2023-05-21)
16
+
17
+ [Full Changelog](https://github.com/bensheldon/good_job/compare/v3.15.8...v3.15.9)
18
+
19
+ **Fixed bugs:**
20
+
21
+ - Fix wait and wait\_until ignored in bulk enqueue [\#960](https://github.com/bensheldon/good_job/pull/960) ([bensheldon](https://github.com/bensheldon))
22
+
23
+ **Closed issues:**
24
+
25
+ - Does Bulk enqueue respect wait? [\#959](https://github.com/bensheldon/good_job/issues/959)
26
+ - BaseExecution::discrete\_support? hardcodes the DiscreteExecution table\_name [\#957](https://github.com/bensheldon/good_job/issues/957)
27
+
28
+ **Merged pull requests:**
29
+
30
+ - Fix flaky jruby test to widen time-based range [\#961](https://github.com/bensheldon/good_job/pull/961) ([bensheldon](https://github.com/bensheldon))
31
+ - Update README.md [\#953](https://github.com/bensheldon/good_job/pull/953) ([namiwang](https://github.com/namiwang))
32
+
3
33
  ## [v3.15.8](https://github.com/bensheldon/good_job/tree/v3.15.8) (2023-05-19)
4
34
 
5
35
  [Full Changelog](https://github.com/bensheldon/good_job/compare/v3.15.7...v3.15.8)
6
36
 
37
+ **Fixed bugs:**
38
+
39
+ - Fix hard-coded and duplicated table\_name [\#958](https://github.com/bensheldon/good_job/pull/958) ([gap777](https://github.com/gap777))
40
+
7
41
  **Closed issues:**
8
42
 
9
43
  - `active_job.enqueue` Performance Issue [\#939](https://github.com/bensheldon/good_job/issues/939)
10
44
 
11
45
  **Merged pull requests:**
12
46
 
13
- - Fix hard-coded and duplicated table\_name [\#958](https://github.com/bensheldon/good_job/pull/958) ([gap777](https://github.com/gap777))
14
47
  - Bump rubocop from 1.46.0 to 1.50.2 [\#949](https://github.com/bensheldon/good_job/pull/949) ([dependabot[bot]](https://github.com/apps/dependabot))
15
48
  - Bump rubocop-rails from 2.18.0 to 2.19.1 [\#947](https://github.com/bensheldon/good_job/pull/947) ([dependabot[bot]](https://github.com/apps/dependabot))
16
49
 
data/README.md CHANGED
@@ -472,7 +472,7 @@ config.good_job.enable_cron = ENV['DYNO'] == 'worker.1' # or `true` or via $GOOD
472
472
 
473
473
  # Configure cron with a hash that has a unique key for each recurring job
474
474
  config.good_job.cron = {
475
- # Every 15 minutes, enqueue `ExampleJob.set(priority: -10).perform_later(42, name: "Alice")`
475
+ # Every 15 minutes, enqueue `ExampleJob.set(priority: -10).perform_later(42, "life", name: "Alice")`
476
476
  frequent_task: { # each recurring job must have a unique key
477
477
  cron: "*/15 * * * *", # cron-style scheduling format by fugit gem
478
478
  class: "ExampleJob", # reference the Job class with a string
@@ -35,7 +35,7 @@ module GoodJob
35
35
  end
36
36
 
37
37
  def discrete_support?
38
- if connection.table_exists?(DiscreteExecution.table_name)
38
+ if connection.table_exists?(GoodJob::DiscreteExecution.table_name)
39
39
  true
40
40
  else
41
41
  migration_pending_warning!
@@ -224,9 +224,8 @@ module GoodJob
224
224
  queue_name: active_job.queue_name.presence || DEFAULT_QUEUE_NAME,
225
225
  priority: active_job.priority || DEFAULT_PRIORITY,
226
226
  serialized_params: active_job.serialize,
227
- scheduled_at: active_job.scheduled_at,
228
227
  }
229
-
228
+ execution_args[:scheduled_at] = Time.zone.at(active_job.scheduled_at) if active_job.scheduled_at
230
229
  execution_args[:concurrency_key] = active_job.good_job_concurrency_key if active_job.respond_to?(:good_job_concurrency_key)
231
230
 
232
231
  reenqueued_current_execution = CurrentThread.active_job_id && CurrentThread.active_job_id == active_job.job_id
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
  module GoodJob
3
3
  # GoodJob gem version.
4
- VERSION = '3.15.8'
4
+ VERSION = '3.15.10'
5
5
 
6
6
  # GoodJob version as Gem::Version object
7
7
  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.15.8
4
+ version: 3.15.10
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-05-19 00:00:00.000000000 Z
11
+ date: 2023-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activejob