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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 946d6d7912809cf31d3f79c0dc7e2c074b20c7bcd853d6c3a9ab35faa5f4f6aa
4
- data.tar.gz: d33a7a41a7c8c259d71c5e8caa7fb268ec0db2c7516a4fb45d937c4e05d5fb64
3
+ metadata.gz: 581ee459525ff8cd06451a4f1867e292878266b6638a18b59a3b8f7909eca889
4
+ data.tar.gz: c054d0236413287311d79acb1addcd2f01e3f415891c96a30f9dc3c0919a83dc
5
5
  SHA512:
6
- metadata.gz: e849433834f758352c918379f1c727d3b992cd6843f9f27de4768d2f7845402f5c9b418cb93da285811df55882d0a0a6acac90bcedf1bdeac9dbafca66e7af54
7
- data.tar.gz: fe3ae7523b7d9307a085a298a771301b3d9707495a24866eec113bbc172a83ffedfe68e452c1b925e0e04f2a5a54175a995c2c312f1f3033e860615182015c2a
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 string [String] Execution class name
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)
@@ -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
- return unless ready_sockets
47
+ next unless ready_sockets
48
48
 
49
49
  client = @server.accept_nonblock(exception: false)
50
50
  request = client.gets
@@ -91,7 +91,7 @@ module SdNotify
91
91
  notify(FDSTORE, unset_env)
92
92
  end
93
93
 
94
- # @param [Boolean] true if the service manager expects watchdog keep-alive
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,
@@ -2,7 +2,7 @@
2
2
 
3
3
  module GoodJob
4
4
  # GoodJob gem version.
5
- VERSION = '3.17.0'
5
+ VERSION = '3.17.1'
6
6
 
7
7
  # GoodJob version as Gem::Version object
8
8
  GEM_VERSION = Gem::Version.new(VERSION)
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
- # @retyrn [void]
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.0
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-06 00:00:00.000000000 Z
11
+ date: 2023-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activejob