good_job 3.21.3 → 3.21.4
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 +4 -4
- data/CHANGELOG.md +9 -0
- data/app/models/good_job/base_execution.rb +7 -0
- data/lib/good_job/systemd_service.rb +2 -2
- data/lib/good_job/version.rb +1 -1
- data/lib/good_job.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b9e4ef5306eec4101ebed1018da4202479324823721d34e51bfb16e1809ee4ba
|
|
4
|
+
data.tar.gz: 848574c70fb834dfa2bea8339bb7373466975fb84717c75ee51d7b4dd502235c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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?
|
|
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)
|
|
17
|
+
GoodJob._on_thread_error(thread_error)
|
|
18
18
|
end
|
|
19
19
|
|
|
20
20
|
# Indicates whether the service is actively notifying systemd's watchdog.
|
data/lib/good_job/version.rb
CHANGED
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.
|
|
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.
|
|
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-
|
|
11
|
+
date: 2023-12-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activejob
|