good_job 3.17.0 → 3.17.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/app/models/good_job/base_execution.rb +2 -2
- data/app/models/good_job/batch.rb +0 -1
- data/app/models/good_job/execution.rb +3 -6
- data/lib/good_job/http_server.rb +1 -1
- data/lib/good_job/sd_notify.rb +1 -1
- 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: 581ee459525ff8cd06451a4f1867e292878266b6638a18b59a3b8f7909eca889
|
4
|
+
data.tar.gz: c054d0236413287311d79acb1addcd2f01e3f415891c96a30f9dc3c0919a83dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d52f9217c71d2fc4c9af170570dd317f78ee39e33cd337b77aab84102ca605e56a4fde0cdb1fe9892c3d1e81f2ef67f91f7210e855b81025a57445cced43b66c
|
7
|
+
data.tar.gz: 81a1991701efaaacf9bfc762fc96919511862a469f5411eb905b1489beefda6b0d244947df731b7c7cb483466ef58af698746ef7e46fbb85dbca05f720df36d9
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [v3.17.1](https://github.com/bensheldon/good_job/tree/v3.17.1) (2023-08-08)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/bensheldon/good_job/compare/v3.17.0...v3.17.1)
|
6
|
+
|
7
|
+
**Fixed bugs:**
|
8
|
+
|
9
|
+
- 3.17.0 breaks health check endpoints [\#1033](https://github.com/bensheldon/good_job/issues/1033)
|
10
|
+
- Fix Probe Server by retrying IO.select instead of returning early [\#1034](https://github.com/bensheldon/good_job/pull/1034) ([bensheldon](https://github.com/bensheldon))
|
11
|
+
|
12
|
+
**Closed issues:**
|
13
|
+
|
14
|
+
- Add database connection pool details to Process state [\#1014](https://github.com/bensheldon/good_job/issues/1014)
|
15
|
+
|
16
|
+
**Merged pull requests:**
|
17
|
+
|
18
|
+
- Add YARD warnings to lint script; fix YARD warnings [\#1032](https://github.com/bensheldon/good_job/pull/1032) ([bensheldon](https://github.com/bensheldon))
|
19
|
+
|
3
20
|
## [v3.17.0](https://github.com/bensheldon/good_job/tree/v3.17.0) (2023-08-06)
|
4
21
|
|
5
22
|
[Full Changelog](https://github.com/bensheldon/good_job/compare/v3.16.4...v3.17.0)
|
@@ -12,9 +12,9 @@ module GoodJob
|
|
12
12
|
self.table_name = 'good_jobs'
|
13
13
|
|
14
14
|
# With a given class name
|
15
|
-
# @!method job_class
|
15
|
+
# @!method job_class(name)
|
16
16
|
# @!scope class
|
17
|
-
# @param
|
17
|
+
# @param name [String] Execution class name
|
18
18
|
# @return [ActiveRecord::Relation]
|
19
19
|
scope :job_class, ->(name) { where(params_job_class.eq(name)) }
|
20
20
|
|
@@ -50,7 +50,6 @@ module GoodJob
|
|
50
50
|
)
|
51
51
|
|
52
52
|
# Create a new batch and enqueue it
|
53
|
-
# @param on_finish [String, Object] The class name of the callback job to be enqueued after the batch is finished
|
54
53
|
# @param properties [Hash] Additional properties to be stored on the batch
|
55
54
|
# @param block [Proc] Enqueue jobs within the block to add them to the batch
|
56
55
|
# @return [GoodJob::BatchRecord]
|
@@ -76,7 +76,7 @@ module GoodJob
|
|
76
76
|
}, if: -> { @_destroy_job }
|
77
77
|
|
78
78
|
# Get executions with given ActiveJob ID
|
79
|
-
# @!method active_job_id
|
79
|
+
# @!method active_job_id(active_job_id)
|
80
80
|
# @!scope class
|
81
81
|
# @param active_job_id [String]
|
82
82
|
# ActiveJob ID
|
@@ -115,7 +115,7 @@ module GoodJob
|
|
115
115
|
scope :creation_ordered, -> { order(created_at: :asc) }
|
116
116
|
|
117
117
|
# Order executions for de-queueing
|
118
|
-
# @!method dequeueing_ordered
|
118
|
+
# @!method dequeueing_ordered(parsed_queues)
|
119
119
|
# @!scope class
|
120
120
|
# @param parsed_queues [Hash]
|
121
121
|
# optional output of .queue_parser, parsed queues, will be used for
|
@@ -130,7 +130,7 @@ module GoodJob
|
|
130
130
|
end)
|
131
131
|
|
132
132
|
# Order executions in order of queues in array param
|
133
|
-
# @!method queue_ordered
|
133
|
+
# @!method queue_ordered(queues)
|
134
134
|
# @!scope class
|
135
135
|
# @param queues [Array<string] ordered names of queues
|
136
136
|
# @return [ActiveRecord::Relation]
|
@@ -300,9 +300,6 @@ module GoodJob
|
|
300
300
|
# Epoch timestamp when the job should be executed, if blank will delegate to the ActiveJob instance
|
301
301
|
# @param create_with_advisory_lock [Boolean]
|
302
302
|
# Whether to establish a lock on the {Execution} record after it is created.
|
303
|
-
# @param persist_immediately [Boolean]
|
304
|
-
# Whether to save the record immediately or just initialize it with values. When bulk-inserting
|
305
|
-
# jobs the caller takes care of the persistence and sets this parameter to `false`
|
306
303
|
# @return [Execution]
|
307
304
|
# The new {Execution} instance representing the queued ActiveJob job.
|
308
305
|
def self.enqueue(active_job, scheduled_at: nil, create_with_advisory_lock: false)
|
data/lib/good_job/http_server.rb
CHANGED
@@ -44,7 +44,7 @@ module GoodJob
|
|
44
44
|
while @running.true?
|
45
45
|
begin
|
46
46
|
ready_sockets, = IO.select([@server], nil, nil, SOCKET_READ_TIMEOUT)
|
47
|
-
|
47
|
+
next unless ready_sockets
|
48
48
|
|
49
49
|
client = @server.accept_nonblock(exception: false)
|
50
50
|
request = client.gets
|
data/lib/good_job/sd_notify.rb
CHANGED
@@ -91,7 +91,7 @@ module SdNotify
|
|
91
91
|
notify(FDSTORE, unset_env)
|
92
92
|
end
|
93
93
|
|
94
|
-
# @
|
94
|
+
# @return [Boolean] true if the service manager expects watchdog keep-alive
|
95
95
|
# notification messages to be sent from this process.
|
96
96
|
#
|
97
97
|
# If the $WATCHDOG_USEC environment variable is set,
|
data/lib/good_job/version.rb
CHANGED
data/lib/good_job.rb
CHANGED
@@ -111,7 +111,7 @@ module GoodJob
|
|
111
111
|
|
112
112
|
# Custom Active Record configuration that is class_eval'ed into +GoodJob::BaseRecord+
|
113
113
|
# @param block Custom Active Record configuration
|
114
|
-
# @
|
114
|
+
# @return [void]
|
115
115
|
#
|
116
116
|
# @example
|
117
117
|
# GoodJob.configure_active_record do
|
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.17.
|
4
|
+
version: 3.17.1
|
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-08-
|
11
|
+
date: 2023-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activejob
|