good_job 3.4.1 → 3.4.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 +4 -4
- data/CHANGELOG.md +20 -1
- data/app/models/good_job/cron_entry.rb +3 -1
- data/lib/good_job/log_subscriber.rb +4 -4
- data/lib/good_job/version.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: 6c31e9dc63de3bff82d55ba85e17690ad52dcf2d9b8ebc8bcb0d8dc7eab261b0
|
|
4
|
+
data.tar.gz: bab18a8d7b7328f172a6b66adba1767281cba281a8f38e76c8bfd303fd6a25a9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d93aa0c5246d5e7be37f5887b7b3c8618815b88558360bb351ce9df7529460994506ddbdd84f1c57d4066216ea0fa98afdb937468c60aafd4966a2de88967656
|
|
7
|
+
data.tar.gz: b25da80ce2ca30517c4ec89187e062db7c1fd1e0b16ce7adaec33fb7da53ce1d56163a58595b57b4919d9d9cdbdf81ef6cf61664c48d2940c1f06fc70aaa6589
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [v3.4.2](https://github.com/bensheldon/good_job/tree/v3.4.2) (2022-08-13)
|
|
4
|
+
|
|
5
|
+
[Full Changelog](https://github.com/bensheldon/good_job/compare/v3.4.1...v3.4.2)
|
|
6
|
+
|
|
7
|
+
**Fixed bugs:**
|
|
8
|
+
|
|
9
|
+
- Jobs enqueued via dashboard ignores app default\_locale [\#697](https://github.com/bensheldon/good_job/issues/697)
|
|
10
|
+
- Include better exception log messages, including class and backtrace [\#693](https://github.com/bensheldon/good_job/pull/693) ([bensheldon](https://github.com/bensheldon))
|
|
11
|
+
|
|
12
|
+
**Closed issues:**
|
|
13
|
+
|
|
14
|
+
- Do we need to implement concurrency with scheduled cron jobs? [\#690](https://github.com/bensheldon/good_job/issues/690)
|
|
15
|
+
- Uninitialized constant GoodJob::JobsController [\#674](https://github.com/bensheldon/good_job/issues/674)
|
|
16
|
+
- ActiveRecord::StatementInvalid: PG::ConnectionBad: PQsocket\(\) can't get socket descriptor every 30 minutes aprox. [\#579](https://github.com/bensheldon/good_job/issues/579)
|
|
17
|
+
- Handle assets in dashboard when rails app is behind proxy path [\#424](https://github.com/bensheldon/good_job/issues/424)
|
|
18
|
+
|
|
19
|
+
**Merged pull requests:**
|
|
20
|
+
|
|
21
|
+
- Enqueues jobs with I18n default locale [\#698](https://github.com/bensheldon/good_job/pull/698) ([esasse](https://github.com/esasse))
|
|
22
|
+
|
|
3
23
|
## [v3.4.1](https://github.com/bensheldon/good_job/tree/v3.4.1) (2022-08-06)
|
|
4
24
|
|
|
5
25
|
[Full Changelog](https://github.com/bensheldon/good_job/compare/v3.4.0...v3.4.1)
|
|
@@ -8,7 +28,6 @@
|
|
|
8
28
|
|
|
9
29
|
- Add `cron_enabled` to Process state [\#673](https://github.com/bensheldon/good_job/issues/673)
|
|
10
30
|
- Good job is using a lot of memory / ram [\#613](https://github.com/bensheldon/good_job/issues/613)
|
|
11
|
-
- ActiveRecord::StatementInvalid: PG::ConnectionBad: PQsocket\(\) can't get socket descriptor every 30 minutes aprox. [\#579](https://github.com/bensheldon/good_job/issues/579)
|
|
12
31
|
|
|
13
32
|
**Merged pull requests:**
|
|
14
33
|
|
|
@@ -106,7 +106,9 @@ module GoodJob # :nodoc:
|
|
|
106
106
|
current_thread.cron_at = cron_at
|
|
107
107
|
|
|
108
108
|
configured_job = job_class.constantize.set(set_value)
|
|
109
|
-
|
|
109
|
+
I18n.with_locale(I18n.default_locale) do
|
|
110
|
+
kwargs_value.present? ? configured_job.perform_later(*args_value, **kwargs_value) : configured_job.perform_later(*args_value)
|
|
111
|
+
end
|
|
110
112
|
end
|
|
111
113
|
rescue ActiveRecord::RecordNotUnique
|
|
112
114
|
false
|
|
@@ -32,7 +32,7 @@ module GoodJob
|
|
|
32
32
|
return unless exception
|
|
33
33
|
|
|
34
34
|
error do
|
|
35
|
-
"GoodJob error: #{exception}\n #{exception.backtrace}"
|
|
35
|
+
"GoodJob error: #{exception.class}: #{exception}\n #{exception.backtrace}"
|
|
36
36
|
end
|
|
37
37
|
end
|
|
38
38
|
|
|
@@ -42,7 +42,7 @@ module GoodJob
|
|
|
42
42
|
return unless exception
|
|
43
43
|
|
|
44
44
|
error do
|
|
45
|
-
"GoodJob error: #{exception}\n #{exception.backtrace}"
|
|
45
|
+
"GoodJob error: #{exception.class}: #{exception}\n #{exception.backtrace}"
|
|
46
46
|
end
|
|
47
47
|
end
|
|
48
48
|
|
|
@@ -123,10 +123,10 @@ module GoodJob
|
|
|
123
123
|
|
|
124
124
|
# @!macro notification_responder
|
|
125
125
|
def notifier_notify_error(event)
|
|
126
|
-
|
|
126
|
+
exception = event.payload[:error]
|
|
127
127
|
|
|
128
128
|
error do
|
|
129
|
-
"Notifier errored: #{
|
|
129
|
+
"Notifier errored: #{exception.class}: #{exception}\n #{exception.backtrace}"
|
|
130
130
|
end
|
|
131
131
|
end
|
|
132
132
|
|
data/lib/good_job/version.rb
CHANGED
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.4.
|
|
4
|
+
version: 3.4.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: 2022-08-
|
|
11
|
+
date: 2022-08-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activejob
|