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 +4 -4
- data/README.md +2 -0
- data/app/models/solid_queue/recurring_task.rb +1 -1
- data/lib/solid_queue/async_supervisor.rb +2 -2
- data/lib/solid_queue/fork_supervisor.rb +1 -1
- data/lib/solid_queue/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: 740ecc6a7761906fecdf41fd7cd12bc4d94f2dff846857148d5f7b189bd0c095
|
|
4
|
+
data.tar.gz: b317f64446891ae6aa889492fee0331e96ca962aeeb61a677119800f3f0c8faa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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(
|
|
30
|
-
release_claimed_jobs_by(
|
|
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
|
data/lib/solid_queue/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2026-01-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|