cuboid 0.3.0 → 0.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/lib/cuboid/processes/manager.rb +18 -11
- data/lib/version +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 717d69e1fcef53de4d095767e872bd53fc79246cdbbca0e4560df96456ffb5fd
|
|
4
|
+
data.tar.gz: 0db7ece0126d99059758fdafb8cdbf4bb9a1901b1894d2d11ebb2ab945649573
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e203b23373edecadd61883ef78452b70c6a04f073b619d3361e0a26bfbc9350fd29c4408d059fdc9533584da12be4ef4784d0f7c0d8f9209efdc207e19078d89
|
|
7
|
+
data.tar.gz: dd371cc5899faade9950734b49c059c6a7bcfd43a7d19df5d432e931c00b89ed14b15abd65c21585eb467b8b05796a73a0de1ef5aef20bdab597426e2b2e9ed5
|
|
@@ -11,6 +11,7 @@ class Manager
|
|
|
11
11
|
include Singleton
|
|
12
12
|
|
|
13
13
|
RUNNER = "#{File.dirname( __FILE__ )}/executables/base.rb"
|
|
14
|
+
SPAWN_RETRIES = 10
|
|
14
15
|
|
|
15
16
|
# @return [Array<Integer>] PIDs of all running processes.
|
|
16
17
|
attr_reader :pids
|
|
@@ -227,17 +228,23 @@ class Manager
|
|
|
227
228
|
argv = [executable, encoded_options]
|
|
228
229
|
|
|
229
230
|
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
231
|
+
pid = nil
|
|
232
|
+
SPAWN_RETRIES.times do |i|
|
|
233
|
+
begin
|
|
234
|
+
# It's very, **VERY** important that we use this argument format as
|
|
235
|
+
# it bypasses the OS shell and we can thus count on a 1-to-1 process
|
|
236
|
+
# creation and that the PID we get will be for the actual process.
|
|
237
|
+
pid = Process.spawn(
|
|
238
|
+
{
|
|
239
|
+
'CUBOID_SPAWN_OPTIONS' => encoded_cuboid_options
|
|
240
|
+
},
|
|
241
|
+
RbConfig.ruby,
|
|
242
|
+
RUNNER,
|
|
243
|
+
*(argv + [spawn_options])
|
|
244
|
+
)
|
|
245
|
+
break if alive? pid
|
|
246
|
+
end
|
|
247
|
+
end
|
|
241
248
|
|
|
242
249
|
self << pid
|
|
243
250
|
|
data/lib/version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.3.
|
|
1
|
+
0.3.1
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cuboid
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tasos Laskos
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-04-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: awesome_print
|
|
@@ -473,7 +473,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
473
473
|
- !ruby/object:Gem::Version
|
|
474
474
|
version: '0'
|
|
475
475
|
requirements: []
|
|
476
|
-
rubygems_version: 3.4.
|
|
476
|
+
rubygems_version: 3.4.19
|
|
477
477
|
signing_key:
|
|
478
478
|
specification_version: 4
|
|
479
479
|
summary: An application-centric, decentralised and distributed computing solution.
|