miga-base 1.2.2.3 → 1.2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/miga/cli/action/wf.rb +13 -7
- data/lib/miga/version.rb +2 -2
- data/utils/index_metadata.rb +2 -0
- 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: 94374ec5cc66632861a18159a8adf69591ce9d3d5249de5baacd636d7519bb9e
|
4
|
+
data.tar.gz: '0395e8ac95c1770b2ee859a4bc59d0ba806f1298cc271f4ff0b64a4c7363897d'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69667e9595a04b972865911b5c2e4204f879d8c8f7fee6cd68e5c4e7a84662d9c9d4018a4f533cbbb33eada796fc26faa4797b3c0c016d4ef34fc8c1d13138e2
|
7
|
+
data.tar.gz: 86aae6d82404516d2cbd8812eef539e00690fdf47ccecf7205bd4e4f301dc11f415f630111a40f22459a448579b4251698906e7e0380eb1631a1fae05915e183
|
data/lib/miga/cli/action/wf.rb
CHANGED
@@ -69,15 +69,20 @@ module MiGA::Cli::Action::Wf
|
|
69
69
|
'By default: ~/.miga_daemon.json'
|
70
70
|
) { |v| cli[:daemon_json] = v }
|
71
71
|
opt.on(
|
72
|
-
'-j', '--jobs INT',
|
72
|
+
'-j', '--jobs INT', Integer,
|
73
73
|
'Number of parallel jobs to execute',
|
74
74
|
'By default controlled by the daemon configuration (maxjobs)'
|
75
|
-
) { |v| cli[:jobs] = v
|
75
|
+
) { |v| cli[:jobs] = v }
|
76
76
|
opt.on(
|
77
|
-
'-t', '--threads INT',
|
77
|
+
'-t', '--threads INT', Integer,
|
78
78
|
'Number of CPUs to use per job',
|
79
79
|
'By default controlled by the daemon configuration (ppn)'
|
80
|
-
) { |v| cli[:threads] = v
|
80
|
+
) { |v| cli[:threads] = v }
|
81
|
+
opt.on(
|
82
|
+
'--threads-project INT', Integer,
|
83
|
+
'Number of CPUs to use per project-wide job',
|
84
|
+
'By default controlled by the daemon configuration (ppn_project or ppn)'
|
85
|
+
) { |v| cli[:threads_project] = v }
|
81
86
|
end
|
82
87
|
|
83
88
|
def opts_for_wf_distances(opt)
|
@@ -184,9 +189,10 @@ module MiGA::Cli::Action::Wf
|
|
184
189
|
|
185
190
|
def run_daemon
|
186
191
|
cmd = ['daemon', 'run', '-P', cli[:outdir], '--shutdown-when-done']
|
187
|
-
cmd += ['--json', cli[:daemon_json]]
|
188
|
-
cmd += ['--max-jobs', cli[:jobs]]
|
189
|
-
cmd += ['--ppn', cli[:threads]]
|
192
|
+
cmd += ['--json', cli[:daemon_json]] if cli[:daemon_json]
|
193
|
+
cmd += ['--max-jobs', cli[:jobs]] if cli[:jobs]
|
194
|
+
cmd += ['--ppn', cli[:threads]] if cli[:threads]
|
195
|
+
cmd += ['--ppn-project', cli[:threads_project]] if cli[:threads_project]
|
190
196
|
cmd += ['--debug', MiGA::MiGA.debug_trace? ? '2' : '1'] if MiGA::MiGA.debug?
|
191
197
|
cwd = Dir.pwd
|
192
198
|
call_cli(cmd)
|
data/lib/miga/version.rb
CHANGED
@@ -12,7 +12,7 @@ module MiGA
|
|
12
12
|
# - String indicating release status:
|
13
13
|
# - rc* release candidate, not released as gem
|
14
14
|
# - [0-9]+ stable release, released as gem
|
15
|
-
VERSION = [1.2,
|
15
|
+
VERSION = [1.2, 3, 0].freeze
|
16
16
|
|
17
17
|
##
|
18
18
|
# Nickname for the current major.minor version.
|
@@ -20,7 +20,7 @@ module MiGA
|
|
20
20
|
|
21
21
|
##
|
22
22
|
# Date of the current gem relese.
|
23
|
-
VERSION_DATE = Date.new(2022, 2,
|
23
|
+
VERSION_DATE = Date.new(2022, 2, 17)
|
24
24
|
|
25
25
|
##
|
26
26
|
# References of MiGA
|
data/utils/index_metadata.rb
CHANGED
@@ -19,6 +19,7 @@ end
|
|
19
19
|
p.each_dataset do |d|
|
20
20
|
next unless d.ref? && d.active?
|
21
21
|
|
22
|
+
db.execute('BEGIN TRANSACTION')
|
22
23
|
searchable(db, d, :name, d.name)
|
23
24
|
d.metadata.each do |k, v|
|
24
25
|
next if [:created, :updated].include? k
|
@@ -26,4 +27,5 @@ p.each_dataset do |d|
|
|
26
27
|
v = v.sorted_ranks.map { |r| r[1] }.join(' ') if k == :tax
|
27
28
|
searchable(db, d, k, v)
|
28
29
|
end
|
30
|
+
db.execute('COMMIT')
|
29
31
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: miga-base
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luis M. Rodriguez-R
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-02-
|
11
|
+
date: 2022-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: daemons
|