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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3b3fd16e90667560b5cba41046eb92613187279fd7194d1825cc3dee9690273d
4
- data.tar.gz: 84043b09c234b825ba0b89ca057b4301a97d5234a87282583516abffbc377e05
3
+ metadata.gz: 94374ec5cc66632861a18159a8adf69591ce9d3d5249de5baacd636d7519bb9e
4
+ data.tar.gz: '0395e8ac95c1770b2ee859a4bc59d0ba806f1298cc271f4ff0b64a4c7363897d'
5
5
  SHA512:
6
- metadata.gz: 2e0d76139cfd93f77a91ee266bd596d74e8881da94fb750d97b03bb6c491424e75af208177687525d284ae3fe96e77f1e373f0bdce0583445a4070f3ed09cac0
7
- data.tar.gz: 5bd98ea9eb89bcb4af4b74128c2d84ac1f32047322bb2177f7d47543efcc4122a4f8c23f463e8ae8291c8e6dff753182a39fd11fbdf42679975e5b2dba0ca571
6
+ metadata.gz: 69667e9595a04b972865911b5c2e4204f879d8c8f7fee6cd68e5c4e7a84662d9c9d4018a4f533cbbb33eada796fc26faa4797b3c0c016d4ef34fc8c1d13138e2
7
+ data.tar.gz: 86aae6d82404516d2cbd8812eef539e00690fdf47ccecf7205bd4e4f301dc11f415f630111a40f22459a448579b4251698906e7e0380eb1631a1fae05915e183
@@ -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.to_i }
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.to_i }
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]] unless cli[:daemon_json].nil?
188
- cmd += ['--max-jobs', cli[:jobs]] unless cli[:jobs].nil?
189
- cmd += ['--ppn', cli[:threads]] unless cli[:threads].nil?
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, 2, 3].freeze
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, 9)
23
+ VERSION_DATE = Date.new(2022, 2, 17)
24
24
 
25
25
  ##
26
26
  # References of MiGA
@@ -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.2.3
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-09 00:00:00.000000000 Z
11
+ date: 2022-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: daemons