solid_queue 1.3.0 → 1.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ae346e5b4e8249ab21441c1b45118745124d1d7d78b5b43c08cf6b333e0ec665
4
- data.tar.gz: fc4b4a6131ff3cb5799f1325f9b0523606152bf8e331bf7122af4463c543e2b5
3
+ metadata.gz: 740ecc6a7761906fecdf41fd7cd12bc4d94f2dff846857148d5f7b189bd0c095
4
+ data.tar.gz: b317f64446891ae6aa889492fee0331e96ca962aeeb61a677119800f3f0c8faa
5
5
  SHA512:
6
- metadata.gz: 2282d35fe14f5dfa424f1016dd8e00b2f3613e7023cb48cf99b82de5e2079de0154e7102fef72867060cdf4f1e7c9aa125cbed43c229ead9c200342c74e41099
7
- data.tar.gz: cab19aa7d9d4a22fc3c068ebe00d2bbd1c288c023a37ef24b461bc8d84d9c3e100337ffcd53bf634d17e712e42937175e59cc6b2041e81661e91edfa9fb94282
6
+ metadata.gz: '068a183750afec605e3ce5064cffc067b7ae75c8bd4f14d8052f993393a99595405cdf6f5bbef28236c80518d3941d49ab92c3ef5060093b23febda6c6076917'
7
+ data.tar.gz: ddb517d7b26b779f6ee33b0316c671f494b2785404f2ec305c707e8bbe927496837d25ea787fd5f8c314d7a62b731a8a9df8cef37ecea9321d9602260eb572e1
data/README.md CHANGED
@@ -258,6 +258,8 @@ Here's an overview of the different options:
258
258
  ```
259
259
 
260
260
  This will create a worker fetching jobs from all queues starting with `staging`. The wildcard `*` is only allowed on its own or at the end of a queue name; you can't specify queue names such as `*_some_queue`. These will be ignored.
261
+
262
+ Also, if a wildcard (*) is included alongside explicit queue names, for example: `queues: [default, backend, *]`, then it would behave like `queues: *`
261
263
 
262
264
  Finally, you can combine prefixes with exact names, like `[ staging*, background ]`, and the behaviour with respect to order will be the same as with only exact names.
263
265
 
@@ -110,7 +110,7 @@ module SolidQueue
110
110
 
111
111
  def ensure_command_or_class_present
112
112
  unless command.present? || class_name.present?
113
- errors.add :base, :command_and_class_blank, message: "either command or class_name must be present"
113
+ errors.add :base, :command_and_class_blank, message: "either command or class must be present"
114
114
  end
115
115
  end
116
116
 
@@ -26,8 +26,8 @@ module SolidQueue
26
26
  SolidQueue.instrument(:replace_thread, supervisor_pid: ::Process.pid) do |payload|
27
27
  payload[:thread] = instance
28
28
 
29
- error = Processes::ThreadTerminatedError.new(terminated_instance.name)
30
- release_claimed_jobs_by(terminated_instance, with_error: error)
29
+ error = Processes::ThreadTerminatedError.new(instance.name)
30
+ release_claimed_jobs_by(instance, with_error: error)
31
31
 
32
32
  start_process(configured_processes.delete(thread_id))
33
33
  end
@@ -38,7 +38,7 @@ module SolidQueue
38
38
  pid, status = ::Process.waitpid2(-1, ::Process::WNOHANG)
39
39
  break unless pid
40
40
 
41
- if (terminated_fork = process_instances.delete(pid)) && !status.exited? || status.exitstatus > 0
41
+ if (terminated_fork = process_instances.delete(pid)) && (!status.exited? || status.exitstatus.to_i > 0)
42
42
  error = Processes::ProcessExitError.new(status)
43
43
  release_claimed_jobs_by(terminated_fork, with_error: error)
44
44
  end
@@ -1,3 +1,3 @@
1
1
  module SolidQueue
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solid_queue
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rosa Gutierrez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-01-09 00:00:00.000000000 Z
11
+ date: 2026-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord