autoflow 0.9.2 → 0.9.4

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
  SHA1:
3
- metadata.gz: 03a2fce5cddce218e8903d7b7cff49acd3c6962c
4
- data.tar.gz: 1c2019a7d65d8710bc37baa649301c43a1b61585
3
+ metadata.gz: d00ffd44b18b2ba6bff750522f11da332378e57f
4
+ data.tar.gz: 4ebda34a7cd6c968cfbf4c81164fb8fac1fb243e
5
5
  SHA512:
6
- metadata.gz: a52c86fde55c4854e587710c1969e62c282d7fbdd51f645c9a94ce1454882097cecf8f58566f1711cd6c6f4fb92fc02f6e4aef9a3fa46154453b6c09b8a01c6e
7
- data.tar.gz: 1d8efc8bd847a2c1fea463497a0a02637582cd744d4654951551759a0e425dd74839622ec23f25a94b938c0a21e35edec129188a04409d9f84079c6171345486
6
+ metadata.gz: f4d0ed9038fe26031413bd81131b10f91f2bf4f7d297c8f070a04e347439d3b044bb48dffcd0abd639c46ff8a992f32d13a1d147ea8d74a133b43012eb8e5d29
7
+ data.tar.gz: '008f6891d2267ca10b8f0e97da622c069bbfc774f1e7bdd933b051a30fb83f9e1eaef126a998d9b7e38582e6e17b78e1a43bf05c5ce9a1e18fd409754b7646e3'
@@ -108,6 +108,11 @@ optparse = OptionParser.new do |opts|
108
108
  options[:external_dependencies] = external_dependencies.split(',')
109
109
  end
110
110
 
111
+ options[:extended_logging] = false
112
+ opts.on( '-e', '--extended_logging', 'If set the command /usr/bin/time will be used instead of shell built-in version. Data will be saved in process_data file of task folder' ) do
113
+ options[:extended_logging] = true
114
+ end
115
+
111
116
  options[:retry] = false
112
117
  opts.on( '-f', '--force', 'Execute all jobs, including any job commented with %' ) do
113
118
  options[:retry] = true
@@ -296,6 +296,15 @@ OptionParser.new do |opts|
296
296
  opts.on("-H", "--html", "Make a workflow execution full report in html format") do |opt|
297
297
  options[:html] = true
298
298
  end
299
+
300
+ # Set a banner, displayed at the top of the help screen.
301
+ opts.banner = "Usage: flow_logger [options] \n\n"
302
+
303
+ # This displays the help screen
304
+ opts.on( '-h', '--help', 'Display this screen' ) do
305
+ puts opts
306
+ exit
307
+ end
299
308
  end.parse!
300
309
 
301
310
  #################################################################################################
@@ -15,6 +15,7 @@ class QueueManager
15
15
  @write_sh = options[:write_sh]
16
16
  @external_dependencies = options[:external_dependencies]
17
17
  @active_jobs = []
18
+ @extended_logging = options[:extended_logging]
18
19
  end
19
20
 
20
21
  ########################################################################################
@@ -267,7 +268,12 @@ class QueueManager
267
268
 
268
269
  def write_job(job, sh_name)
269
270
  write_file(sh_name, job.initialization) if !job.initialization.nil?
270
- write_file(sh_name, 'time ' + job.parameters)
271
+ if @extended_logging
272
+ log_command = '/usr/bin/time -o process_data -v '
273
+ else
274
+ log_command = 'time '
275
+ end
276
+ write_file(sh_name, log_command + job.parameters)
271
277
  end
272
278
 
273
279
  def get_dependencies(job, id = nil)
@@ -1,3 +1,3 @@
1
1
  module Autoflow
2
- VERSION = "0.9.2"
2
+ VERSION = "0.9.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autoflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedro Seoane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-24 00:00:00.000000000 Z
11
+ date: 2019-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh