good_job 3.21.3 → 3.21.4

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: b2b769f6444bb3572bd5739f046469179945f8fc6f13c9fa5bd3de03b25e8e43
4
- data.tar.gz: c7b0cd19944dea29a8cb75dce00ed92434879d08f07718781d91123a295f6a11
3
+ metadata.gz: b9e4ef5306eec4101ebed1018da4202479324823721d34e51bfb16e1809ee4ba
4
+ data.tar.gz: 848574c70fb834dfa2bea8339bb7373466975fb84717c75ee51d7b4dd502235c
5
5
  SHA512:
6
- metadata.gz: fff83dabf6211e76b3439bd1a6486ba2009bb5fc9ae689673deefbf5728de44245e1a982e9d56c524dc07780d6c831328765e2c3c8b3aaef950f7969ffdb1a15
7
- data.tar.gz: 289f6573c18d539a7ca6918d8288fdf6f510732df036138f44a816e1bebae53529695f766146488fda2967aa120b97e4d938ea0453a69b91c636286064dbec61
6
+ metadata.gz: d18fb332702f5c9deed1806cc370991a2c42dc18dc81627a2e2688571967771fa0bb503268e142095ed82a97a387dbca9989070b91bdc34652a65716b1919df0
7
+ data.tar.gz: 988194bd1f4ffb95a0f41aae78bc5a3ecb2d2de1c8179dee58c7b0bed4ca01f4562adcd34b7e0986c75f1e80e081c78f6726d8328445df03d528ec1d680aad2f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## [v3.21.4](https://github.com/bensheldon/good_job/tree/v3.21.4) (2023-12-11)
4
+
5
+ [Full Changelog](https://github.com/bensheldon/good_job/compare/v3.21.3...v3.21.4)
6
+
7
+ **Fixed bugs:**
8
+
9
+ - Fix latest migration not affecting `GoodJob.migrated?` [\#1175](https://github.com/bensheldon/good_job/pull/1175) ([Earlopain](https://github.com/Earlopain))
10
+ - Fix no method error in systemd service [\#1173](https://github.com/bensheldon/good_job/pull/1173) ([tagrudev](https://github.com/tagrudev))
11
+
3
12
  ## [v3.21.3](https://github.com/bensheldon/good_job/tree/v3.21.3) (2023-12-10)
4
13
 
5
14
  [Full Changelog](https://github.com/bensheldon/good_job/compare/v3.21.2...v3.21.3)
@@ -49,6 +49,13 @@ module GoodJob
49
49
  migration_pending_warning!
50
50
  false
51
51
  end
52
+
53
+ def cron_indices_migrated?
54
+ return true if connection.index_name_exists?(:good_jobs, :index_good_jobs_on_cron_key_and_created_at_cond)
55
+
56
+ migration_pending_warning!
57
+ false
58
+ end
52
59
  end
53
60
 
54
61
  # The ActiveJob job class, as a string
@@ -11,10 +11,10 @@ module GoodJob # :nodoc:
11
11
  #
12
12
  class SystemdService
13
13
  def self.task_observer(_time, _output, thread_error) # :nodoc:
14
- return if thread_error.is_a? Concurrent::CancelledOperationError
14
+ return if !thread_error || thread_error.is_a?(Concurrent::CancelledOperationError)
15
15
 
16
16
  ActiveSupport::Notifications.instrument("systemd_watchdog_error.good_job", { error: thread_error })
17
- GoodJob._on_thread_error(thread_error) if thread_error
17
+ GoodJob._on_thread_error(thread_error)
18
18
  end
19
19
 
20
20
  # Indicates whether the service is actively notifying systemd's watchdog.
@@ -2,7 +2,7 @@
2
2
 
3
3
  module GoodJob
4
4
  # GoodJob gem version.
5
- VERSION = '3.21.3'
5
+ VERSION = '3.21.4'
6
6
 
7
7
  # GoodJob version as Gem::Version object
8
8
  GEM_VERSION = Gem::Version.new(VERSION)
data/lib/good_job.rb CHANGED
@@ -272,7 +272,7 @@ module GoodJob
272
272
  def self.migrated?
273
273
  # Always update with the most recent migration check
274
274
  GoodJob::Execution.reset_column_information
275
- GoodJob::Execution.error_event_migrated?
275
+ GoodJob::Execution.cron_indices_migrated?
276
276
  end
277
277
 
278
278
  ActiveSupport.run_load_hooks(:good_job, self)
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.21.3
4
+ version: 3.21.4
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-12-10 00:00:00.000000000 Z
11
+ date: 2023-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activejob