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 +4 -4
- data/bin/AutoFlow +5 -0
- data/bin/flow_logger +9 -0
- data/lib/autoflow/queue_manager.rb +7 -1
- data/lib/autoflow/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d00ffd44b18b2ba6bff750522f11da332378e57f
|
4
|
+
data.tar.gz: 4ebda34a7cd6c968cfbf4c81164fb8fac1fb243e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4d0ed9038fe26031413bd81131b10f91f2bf4f7d297c8f070a04e347439d3b044bb48dffcd0abd639c46ff8a992f32d13a1d147ea8d74a133b43012eb8e5d29
|
7
|
+
data.tar.gz: '008f6891d2267ca10b8f0e97da622c069bbfc774f1e7bdd933b051a30fb83f9e1eaef126a998d9b7e38582e6e17b78e1a43bf05c5ce9a1e18fd409754b7646e3'
|
data/bin/AutoFlow
CHANGED
@@ -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
|
data/bin/flow_logger
CHANGED
@@ -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
|
-
|
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)
|
data/lib/autoflow/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2019-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-ssh
|