rbbt-util 5.21.47 → 5.21.49
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/rbbt/resource/path.rb +1 -1
- data/lib/rbbt/tsv/stream.rb +2 -2
- data/lib/rbbt/util/concurrency/processes/socket.rb +2 -2
- data/lib/rbbt/util/concurrency/processes/worker.rb +1 -1
- data/lib/rbbt/util/semaphore.rb +2 -2
- data/share/rbbt_commands/workflow/install +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f02c825e0aede7590afc8afe258d1a8251874b10
|
4
|
+
data.tar.gz: 76fc34cffaec2dcd00db7c3efd4432cdb25ebb4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a698f0c15100f68d4f72ada8160f38df396c4838e195661ad6d66f5974d7e71c4a656b628b4b04a84673fecdd2ee42097d68abbc1b01bb3967e1de478bfa64a
|
7
|
+
data.tar.gz: ad2b54fe8a9e55066bb47b96e1c331c172f3ee31e67c0e86225a127d390c90ffbe3e987df806bae1a26b624e3c58b8e1ac4c8f96c3daf236430f74b3d54fef23
|
data/lib/rbbt/resource/path.rb
CHANGED
@@ -85,7 +85,7 @@ module Path
|
|
85
85
|
:default => :user
|
86
86
|
})
|
87
87
|
|
88
|
-
STANDARD_SEARCH = %w(current user local
|
88
|
+
STANDARD_SEARCH = %w(current workflow user local global lib fast cache bulk)
|
89
89
|
|
90
90
|
search_path_file = File.join(ENV['HOME'], '.rbbt/etc/search_paths')
|
91
91
|
if File.exist?(search_path_file)
|
data/lib/rbbt/tsv/stream.rb
CHANGED
@@ -303,12 +303,12 @@ module TSV
|
|
303
303
|
end
|
304
304
|
when :list
|
305
305
|
TSV.traverse parser, :into => dumper do |keys,values|
|
306
|
-
key = keys.first
|
306
|
+
key = keys === Array ? keys.first : keys
|
307
307
|
[key, values]
|
308
308
|
end
|
309
309
|
when :flat
|
310
310
|
TSV.traverse parser, :into => dumper do |keys,values|
|
311
|
-
key = keys.first
|
311
|
+
key = keys === Array ? keys.first : keys
|
312
312
|
[key, values]
|
313
313
|
end
|
314
314
|
else
|
@@ -13,7 +13,7 @@ class RbbtProcessQueue
|
|
13
13
|
@key = "/" << rand(1000000000).to_s << '.' << Process.pid.to_s;
|
14
14
|
@write_sem = @key + '.in'
|
15
15
|
@read_sem = @key + '.out'
|
16
|
-
Log.
|
16
|
+
Log.debug "Creating socket semaphores: #{@key}"
|
17
17
|
RbbtSemaphore.create_semaphore(@write_sem,1)
|
18
18
|
RbbtSemaphore.create_semaphore(@read_sem,1)
|
19
19
|
end
|
@@ -21,7 +21,7 @@ class RbbtProcessQueue
|
|
21
21
|
def clean
|
22
22
|
@sread.close unless @sread.closed?
|
23
23
|
@swrite.close unless @swrite.closed?
|
24
|
-
Log.
|
24
|
+
Log.debug "Destroying socket semaphores: #{[@key] * ", "}"
|
25
25
|
RbbtSemaphore.delete_semaphore(@write_sem)
|
26
26
|
RbbtSemaphore.delete_semaphore(@read_sem)
|
27
27
|
end
|
@@ -77,7 +77,7 @@ class RbbtProcessQueue
|
|
77
77
|
|
78
78
|
initial = Misc.memory_use(Process.pid)
|
79
79
|
memory_cap = multiplier * initial
|
80
|
-
Log.
|
80
|
+
Log.debug "Worker for #{Process.pid} started with pid #{@current} -- initial: #{initial} - multiplier: #{multiplier} - cap: #{memory_cap}"
|
81
81
|
|
82
82
|
@monitor_thread = Thread.new do
|
83
83
|
begin
|
data/lib/rbbt/util/semaphore.rb
CHANGED
@@ -69,11 +69,11 @@ if continue
|
|
69
69
|
end
|
70
70
|
|
71
71
|
begin
|
72
|
-
Log.
|
72
|
+
Log.debug "Creating semaphore (#{ size }): #{file}"
|
73
73
|
RbbtSemaphore.create_semaphore(file, size)
|
74
74
|
yield file
|
75
75
|
ensure
|
76
|
-
Log.
|
76
|
+
Log.debug "Removing semaphore #{ file }"
|
77
77
|
RbbtSemaphore.delete_semaphore(file)
|
78
78
|
end
|
79
79
|
end
|
@@ -49,11 +49,15 @@ Misc.in_dir(workflow_dir) do
|
|
49
49
|
Log.info "Updating: " + workflow
|
50
50
|
Misc.in_dir(Misc.snake_case(workflow)) do
|
51
51
|
`git pull`
|
52
|
+
`git submodule init`
|
53
|
+
`git submodule update`
|
52
54
|
end
|
53
55
|
when File.exist?(workflow)
|
54
56
|
Misc.in_dir(workflow) do
|
55
57
|
Log.info "Updating: " + workflow
|
56
58
|
`git pull`
|
59
|
+
`git submodule init`
|
60
|
+
`git submodule update`
|
57
61
|
end
|
58
62
|
else
|
59
63
|
Log.info "Installing: " + workflow
|
@@ -66,6 +70,10 @@ Misc.in_dir(workflow_dir) do
|
|
66
70
|
`git clone "#{repo}"`
|
67
71
|
raise unless $?.success?
|
68
72
|
end
|
73
|
+
Misc.in_dir(Misc.snake_case(workflow)) do
|
74
|
+
`git submodule init`
|
75
|
+
`git submodule update`
|
76
|
+
end
|
69
77
|
end
|
70
78
|
end
|
71
79
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbbt-util
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.21.
|
4
|
+
version: 5.21.49
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Vazquez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|