rbbt-util 5.25.55 → 5.25.56

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1bf6ce754a18b149c9fe40bd0bf8db18f73a7270
4
- data.tar.gz: b4ea2bebd14bb22bdb93c3f24269d0b52b5f644f
3
+ metadata.gz: 0c46454a4604e7ac3622114c04ae9667b602f751
4
+ data.tar.gz: f32e35b8f21e4e1b6c0affed3f4c1344afcd9615
5
5
  SHA512:
6
- metadata.gz: e02a75730174e0dbb073b61e21bd529ee093f8276a94c290c6cb9530ccb1b27aa8529ecefea4c816c1f740a5f911730de04d77e2d6884130f73bba1a628e5800
7
- data.tar.gz: 3e29364d145052242a2d0acd9ffd84c0786f4febde6dac67554c19eeaa626ab89edd2235e43a42b2f1d3f431db72535da5fd9d7dd7c4d4862a5032165c9d5a73
6
+ metadata.gz: 526540540bec4f2771b7a6b32e806ecdb7de1b36b28ddefcc9610c8939258e8f1025b390d95276ab3cae4de26e86ac8971b58a28876ce89ffb206c9acb649f31
7
+ data.tar.gz: e3d04b79a7a8e951bc4b89b0f65fea70b4d3ad5921021fd05c8707a1436862e7847bba192b5cfe80d88232defef938efcfe026329c8e4808bda7b398e459aa8b
@@ -208,8 +208,11 @@ singularity exec -e -C -H "$CONTAINER_DIR" "$SINGULARITY_IMG" rbbt system clean
208
208
  EOF
209
209
  end
210
210
 
211
+ source = File.join(File.expand_path(contain), '.rbbt/var/jobs')
212
+ target = File.expand_path(sync)
211
213
  coda +=<<-EOF
212
- rsync -avt "#{File.join(File.expand_path(contain), '.rbbt/var/jobs')}/" "#{File.expand_path(sync)}/" &>> #{fsync}
214
+ rsync -avt "#{source}/" "#{target}/" &>> #{fsync}
215
+ find '#{target}' -type l -ls | awk '$13 ~ /^#{target.gsub('/','\/')}/ { sub("#{source}", "#{target}", $13); print $11, $13 }' | while read A B; do rm $A; ln -s $B $A; done
213
216
  EOF
214
217
 
215
218
  if contain && (wipe_container == "post" || wipe_container == "both")
@@ -187,7 +187,7 @@ the job dependencies recursively.
187
187
  -ljf--list_job_files List all the files produced in that step
188
188
  --load_inputs* Load inputs from a directory
189
189
  --info Show the job info
190
- --provenance Report the jobs provenance
190
+ -prov--provenance Report the jobs provenance
191
191
  -W--workflows* Load a list of workflows
192
192
  -R--requires* Require a list of files
193
193
  -rwt--remote_workflow_tasks* Load a yaml file describing remote workflow tasks
@@ -25,6 +25,7 @@ $ rbbt workflow trace <job-result> <file.png>
25
25
  -h--height* Image Height
26
26
  -s--size* Image Size (Height and Width)
27
27
  -fg--fix_gap Remove execution gaps
28
+ -pd--plot_data Print plot data
28
29
  EOF
29
30
 
30
31
  SOPT.usage if options[:help]
@@ -150,7 +151,21 @@ tasks_info.each do |task, info|
150
151
  stats[task] = [calls,avg_time, cpus, spark, shard]
151
152
  end
152
153
 
153
- puts stats.to_s
154
+ start = data.column("Start.second").values.flatten.collect{|v| v.to_i}.min
155
+ eend = data.column("End.second").values.flatten.collect{|v| v.to_i}.max
156
+ total = eend - start
157
+ Log.info "Total time elapsed: #{total} seconds"
158
+
159
+ if options[:fix_gap]
160
+ total_gaps = Misc.sum(gaps.collect{|k,v| v})
161
+ Log.info "Total gaps: #{total_gaps} seconds"
162
+ end
163
+
164
+ if options[:plot_data]
165
+ puts data.to_s
166
+ else
167
+ puts stats.to_s
168
+ end
154
169
 
155
170
  if plot
156
171
  data.R <<-EOF, [:svg]
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.25.55
4
+ version: 5.25.56
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-16 00:00:00.000000000 Z
11
+ date: 2019-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake