good_job 4.10.2 → 4.11.1
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 -0
- data/lib/good_job/adapter.rb +9 -0
- data/lib/good_job/configuration.rb +2 -0
- data/lib/good_job/engine.rb +3 -0
- data/lib/good_job/probe_server/simple_handler.rb +9 -3
- data/lib/good_job/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c69e8c15dd5fb5a07db3dd7bba0c71d9a519dd493c81510cb5ff8ff2cc3aa511
|
4
|
+
data.tar.gz: 7d6c2e2b36b732bdef7d1176f9c56c1f2846f9c8eb3f919af80c039cbf5b4fce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a02075581a2d702880e99804db959c67d40d06d946a4392961d635c3b57c484c54755c2fe2cc024e9ca0eac5c9d40a164181dc515e07d6b48672553f907cf75
|
7
|
+
data.tar.gz: 19db6c5195211f4fd0c1eda703d4cf6444ae4afcb4cb8b5388e44d9c0fa21ca5007c97c438b8821b8871a304842c4ad536ae8878eb4b29fdf585b08c78a983da
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,25 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [v4.11.1](https://github.com/bensheldon/good_job/tree/v4.11.1) (2025-06-30)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/bensheldon/good_job/compare/v4.11.0...v4.11.1)
|
6
|
+
|
7
|
+
**Merged pull requests:**
|
8
|
+
|
9
|
+
- Add `require rails` to good\_job/engine.rb to allow `bundle console` usage [\#1653](https://github.com/bensheldon/good_job/pull/1653) ([bensheldon](https://github.com/bensheldon))
|
10
|
+
|
11
|
+
## [v4.11.0](https://github.com/bensheldon/good_job/tree/v4.11.0) (2025-06-30)
|
12
|
+
|
13
|
+
[Full Changelog](https://github.com/bensheldon/good_job/compare/v4.10.2...v4.11.0)
|
14
|
+
|
15
|
+
**Implemented enhancements:**
|
16
|
+
|
17
|
+
- Add GoodJob::Adapter\#stopping to support Active Job continuations feature [\#1646](https://github.com/bensheldon/good_job/pull/1646) ([bensheldon](https://github.com/bensheldon))
|
18
|
+
|
19
|
+
**Merged pull requests:**
|
20
|
+
|
21
|
+
- Fix Probe Server handling server shutdown on SIGINT when daemonized [\#1644](https://github.com/bensheldon/good_job/pull/1644) ([bensheldon](https://github.com/bensheldon))
|
22
|
+
|
3
23
|
## [v4.10.2](https://github.com/bensheldon/good_job/tree/v4.10.2) (2025-05-29)
|
4
24
|
|
5
25
|
[Full Changelog](https://github.com/bensheldon/good_job/compare/v4.10.1...v4.10.2)
|
data/lib/good_job/adapter.rb
CHANGED
@@ -173,6 +173,15 @@ module GoodJob
|
|
173
173
|
end
|
174
174
|
end
|
175
175
|
|
176
|
+
# Whether the current job execution thread is shutting down.
|
177
|
+
# This is intended to be called from within the context of a performing job.
|
178
|
+
# Jobs can call this while performing via `queue_adapter.stopping?` to support
|
179
|
+
# job continuations/iterations.
|
180
|
+
# @return [Boolean]
|
181
|
+
def stopping?
|
182
|
+
GoodJob.current_thread_shutting_down?
|
183
|
+
end
|
184
|
+
|
176
185
|
# Shut down the thread pool executors.
|
177
186
|
# @param timeout [nil, Numeric, NONE] Seconds to wait for active threads.
|
178
187
|
# * +nil+ trigger a shutdown but not wait for it to complete.
|
data/lib/good_job/engine.rb
CHANGED
@@ -33,7 +33,7 @@ module GoodJob
|
|
33
33
|
start_server
|
34
34
|
handle_connections if @running.true?
|
35
35
|
rescue StandardError => e
|
36
|
-
@logger.error "Server encountered an error: #{e}"
|
36
|
+
@logger.error "Server encountered an error: #{e.class} - #{e}"
|
37
37
|
ensure
|
38
38
|
stop
|
39
39
|
end
|
@@ -60,8 +60,14 @@ module GoodJob
|
|
60
60
|
end
|
61
61
|
|
62
62
|
client.close
|
63
|
-
rescue IO::WaitReadable, Errno::EINTR
|
64
|
-
retry
|
63
|
+
rescue IO::WaitReadable, Errno::EINTR
|
64
|
+
retry # on transient errors
|
65
|
+
rescue Errno::EPIPE
|
66
|
+
next # Client disconnected - continue
|
67
|
+
rescue Errno::EBADF
|
68
|
+
break if @server&.closed? # Server shut down - stop
|
69
|
+
|
70
|
+
raise
|
65
71
|
end
|
66
72
|
end
|
67
73
|
end
|
data/lib/good_job/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: good_job
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.11.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Sheldon
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date:
|
10
|
+
date: 2025-06-30 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: activejob
|
@@ -240,9 +240,9 @@ executables:
|
|
240
240
|
- good_job
|
241
241
|
extensions: []
|
242
242
|
extra_rdoc_files:
|
243
|
+
- README.md
|
243
244
|
- CHANGELOG.md
|
244
245
|
- LICENSE.txt
|
245
|
-
- README.md
|
246
246
|
files:
|
247
247
|
- CHANGELOG.md
|
248
248
|
- LICENSE.txt
|
@@ -421,7 +421,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
421
421
|
- !ruby/object:Gem::Version
|
422
422
|
version: '0'
|
423
423
|
requirements: []
|
424
|
-
rubygems_version: 3.6.
|
424
|
+
rubygems_version: 3.6.2
|
425
425
|
specification_version: 4
|
426
426
|
summary: A multithreaded, Postgres-based ActiveJob backend for Ruby on Rails
|
427
427
|
test_files: []
|