good_job 3.15.7 → 3.15.9

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: 304066b93c2dc8d6960e51727ee9f9453e79b00793721ffe97d1df02b79eda44
4
- data.tar.gz: '02598cf6b47e27a1d568bb0680d7d4af205fac6bc817953bd26b938a79db25eb'
3
+ metadata.gz: 587b1bc8f95ba439a161eebb06f0ceb527f0f5a93c2807b868799b485a33fa6a
4
+ data.tar.gz: efb03a245b3ea5361707190862868a2d4077eb957d0ebbaea878548875bba6ad
5
5
  SHA512:
6
- metadata.gz: d3107c75571854f143429417d9fe23227da47fdafbb025ea037a6b31094266cfec62da1bbe78525aa29472704568ad5f71f23bf031794fe2cbe6d214f0dea16a
7
- data.tar.gz: '09743b81235c7795f217165f5a64a41132dcd8b0ccf969835dadd143ebb2992b88c3f8650677f089d152e53591e28a09634cb8f4a9e668fc78fc63ee0563cf4a'
6
+ metadata.gz: 3e9c2008e34a477e8ce76cf3e657fc9262b018292f3d3a6293707bd0d573791f26e2ac89ec5f67ba015c678e1016828f609d10e56218d5ee2690b42cb5d78777
7
+ data.tar.gz: b3b08a16c27dda6dbd1e2a7101ee483ae3b8feba2f3a8bbac4f3519c44ac4bf2ec2d0a88a9752928b852116f95074f34b4c796bf24235b9b57326a4121a10846
data/CHANGELOG.md CHANGED
@@ -1,5 +1,40 @@
1
1
  # Changelog
2
2
 
3
+ ## [v3.15.9](https://github.com/bensheldon/good_job/tree/v3.15.9) (2023-05-21)
4
+
5
+ [Full Changelog](https://github.com/bensheldon/good_job/compare/v3.15.8...v3.15.9)
6
+
7
+ **Fixed bugs:**
8
+
9
+ - Fix wait and wait\_until ignored in bulk enqueue [\#960](https://github.com/bensheldon/good_job/pull/960) ([bensheldon](https://github.com/bensheldon))
10
+
11
+ **Closed issues:**
12
+
13
+ - Does Bulk enqueue respect wait? [\#959](https://github.com/bensheldon/good_job/issues/959)
14
+ - BaseExecution::discrete\_support? hardcodes the DiscreteExecution table\_name [\#957](https://github.com/bensheldon/good_job/issues/957)
15
+
16
+ **Merged pull requests:**
17
+
18
+ - Fix flaky jruby test to widen time-based range [\#961](https://github.com/bensheldon/good_job/pull/961) ([bensheldon](https://github.com/bensheldon))
19
+ - Update README.md [\#953](https://github.com/bensheldon/good_job/pull/953) ([namiwang](https://github.com/namiwang))
20
+
21
+ ## [v3.15.8](https://github.com/bensheldon/good_job/tree/v3.15.8) (2023-05-19)
22
+
23
+ [Full Changelog](https://github.com/bensheldon/good_job/compare/v3.15.7...v3.15.8)
24
+
25
+ **Fixed bugs:**
26
+
27
+ - Fix hard-coded and duplicated table\_name [\#958](https://github.com/bensheldon/good_job/pull/958) ([gap777](https://github.com/gap777))
28
+
29
+ **Closed issues:**
30
+
31
+ - `active_job.enqueue` Performance Issue [\#939](https://github.com/bensheldon/good_job/issues/939)
32
+
33
+ **Merged pull requests:**
34
+
35
+ - 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))
36
+ - 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))
37
+
3
38
  ## [v3.15.7](https://github.com/bensheldon/good_job/tree/v3.15.7) (2023-04-30)
4
39
 
5
40
  [Full Changelog](https://github.com/bensheldon/good_job/compare/v3.15.6...v3.15.7)
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?('good_job_executions')
38
+ if connection.table_exists?(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.7'
4
+ VERSION = '3.15.9'
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.7
4
+ version: 3.15.9
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-30 00:00:00.000000000 Z
11
+ date: 2023-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activejob