rbbt-util 5.30.8 → 5.30.9

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: be64e4af9e06d88f1188ab447f63ea37296d562663ed05945de890d4addd4ce1
4
- data.tar.gz: c3c984994184f2b980dfb699b5809d88f41eda8f16201c5c403a20850fc4e9e9
3
+ metadata.gz: 8985df2e0e2353224b5b075acb1bb04243d12351b8d904441009b93ccf490288
4
+ data.tar.gz: 3a1e7d8561fcc72a83c2b0006c49cf50f35a87cfa037c0186bdc3563435a0e8f
5
5
  SHA512:
6
- metadata.gz: bd1e8251c15b80c44c36e9b270db74aa1aadcc2d2c01ed1b613e715a0b1cc3ca23ecd4d936afd37697de1c1dbb476afd0efecf57a2ddefbbddec5eb81a902ff6
7
- data.tar.gz: 33e7e4a1c9a22c9900da0dbb2e4530c4b360fc3ef2f3b3abb8fbc72fd657f4d10f63d1064e721c227b7900760b98e6d98acbc776e4cf476107635c96d64bd006
6
+ metadata.gz: baae9121f3d757bcda2add9f666c740e5647f38d4bbc511d3456e36d466fc443c8a04b0ae12431bbf226e4e0c75eec5700b28720c117954005fe836ad74b76e8
7
+ data.tar.gz: ea61b36cec82f6634546aecf5de356d7d3b3c9d28eccfad52282f309e5ad6e1e28c2bfb627a100970d6a553fdc90b3900a4247101210cfbaae461c35d8e0399a
@@ -140,21 +140,30 @@ module HPC
140
140
  job_rules.delete :tasks
141
141
  job_rules.delete :workflow
142
142
 
143
- config_keys = job_rules.delete(:config_keys)
144
143
 
145
144
  job_options = IndiferentHash.setup(options.merge(job_rules).merge(:slurm_dependencies => dep_ids))
146
145
  job_options.delete :orchestration_rules
146
+
147
+ config_keys = job_rules.delete(:config_keys)
147
148
  if config_keys
148
149
  config_keys.gsub!(/,\s+/,',')
149
150
  job_options[:config_keys] = job_options[:config_keys] ? config_keys + "," + job_options[:config_keys] : config_keys
150
151
  end
151
152
 
152
-
153
153
  if options[:piggyback]
154
154
  manifest = options[:piggyback].uniq
155
155
  manifest += [job]
156
156
  manifest.concat chain if chain
157
+
157
158
  job = options[:piggyback].first
159
+
160
+ job_rules = self.job_rules(rules, job)
161
+ new_config_keys = self.job_rules(rules, job)[:config_keys]
162
+ if new_config_keys
163
+ new_config_keys = new_config_keys.gsub(/,\s+/,',')
164
+ job_options[:config_keys] = job_options[:config_keys] ? new_config_keys + "," + job_options[:config_keys] : new_config_keys
165
+ end
166
+
158
167
  job_options.delete :piggyback
159
168
  else
160
169
  manifest = [job]
@@ -165,6 +174,8 @@ module HPC
165
174
 
166
175
  job_options[:manifest] = manifest.collect{|j| j.workflow_short_path }
167
176
 
177
+ job_options[:config_keys] = job_options[:config_keys].split(",").uniq * "," if job_options[:config_keys]
178
+
168
179
  if options[:dry_run]
169
180
  puts Log.color(:magenta, "Manifest: ") + Log.color(:blue, job_options[:manifest] * ", ") + " - tasks: #{job_options[:task_cpus] || 1} - time: #{job_options[:time]} - config: #{job_options[:config_keys]}"
170
181
  puts Log.color(:yellow, "Deps: ") + Log.color(:blue, job_options[:slurm_dependencies]*", ")
@@ -16,6 +16,7 @@ $ rbbt workflow server [options] <Workflow>
16
16
  -B--Bind* Bind IP
17
17
  -p--port* TCP port
18
18
  -s--server* Server type: thin, webrick, unicorn, etc
19
+ -w--workers* Number of workers for cluster mode (puma)
19
20
  -so--server_options* Additional options for server (e.g. option1=value1;option2=value2)
20
21
  -f--finder Start server with finder functionality
21
22
  -RS--Rserve_session* Rserve session to use, otherwise start new one
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-util
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.30.8
4
+ version: 5.30.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez