workflow_manager 0.7.7 → 0.7.8
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 +4 -4
- data/bin/wfm_monitoring +6 -4
- data/lib/workflow_manager/cluster.rb +4 -0
- data/lib/workflow_manager/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c60e97cd0b4f5c15220a65c77e296b90c38bcdf0218adea5700d6e71556c494
|
4
|
+
data.tar.gz: 201c8eb50cf7647bf4fa53abbd64586ec05b118a82e0fb053f4102977b3c6cb8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c976d0a6b684536d78657b3d21b9cd682e51cbefdbd11c00ed4f65be802f3be749d2e25a0cdf61c620a7153f112131626511af9fc434f0fe24886f0b688cbd8a
|
7
|
+
data.tar.gz: ca7beaebea2c29ce6da4dcb15185258aac2f22b57f773017f8f876b36c81643b212d7e09edd528051ee0695138b945fbd13e5201da4e54c4eadada605d15a07b
|
data/bin/wfm_monitoring
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# encoding: utf-8
|
3
3
|
# 20121112 masa workflow manager client
|
4
|
-
Version = '
|
4
|
+
Version = '20211104-160323'
|
5
5
|
|
6
6
|
require 'drb/drb'
|
7
7
|
require 'workflow_manager/optparse_ex'
|
@@ -13,10 +13,11 @@ opt = OptionParser.new do |o|
|
|
13
13
|
o.on(:server, 'druby://localhost:12345', '-d server', '--server', 'workflow manager URI (default: druby://localhost:12345)')
|
14
14
|
o.on(:log, '-o logdir', '--logdir', 'directory of standard output and standard error file outputted after the job')
|
15
15
|
o.on(:cores, '-c cores', '--cores', 'Number of cores to request for g-sub')
|
16
|
-
o.on(:nodes, '-n nodes', '--nodes', 'Comma separated list of nodes to submit to for g-sub')
|
16
|
+
# o.on(:nodes, '-n nodes', '--nodes', 'Comma separated list of nodes to submit to for g-sub')
|
17
17
|
o.on(:ram, '-r RAM', '--RAM', 'Amount of RAM to request in Gigs for g-sub')
|
18
18
|
o.on(:scratch, '-s scratch', '--scratch', 'Amount of scratch space to request in Gigs for g-sub')
|
19
|
-
o.on(:queue, '-q queue', '--queue', 'Queue name')
|
19
|
+
# o.on(:queue, '-q queue', '--queue', 'Queue name')
|
20
|
+
o.on(:nice, '-i nice', '--nice', 'Nice')
|
20
21
|
o.parse!(ARGV)
|
21
22
|
end
|
22
23
|
unless script_file = ARGV[0] and script_file =~ /\.sh/
|
@@ -49,7 +50,8 @@ sge_options = []
|
|
49
50
|
sge_options << "-c #{opt.cores}" if opt.cores
|
50
51
|
sge_options << "-r #{opt.ram}" if opt.ram
|
51
52
|
sge_options << "-s #{opt.scratch}" if opt.scratch
|
52
|
-
sge_options << "-n #{opt.nodes}" if opt.nodes
|
53
|
+
#sge_options << "-n #{opt.nodes}" if opt.nodes
|
54
|
+
sge_options << "-i #{opt.nice}" if opt.nice
|
53
55
|
|
54
56
|
script_content = File.read(script_file)
|
55
57
|
workflow_manager = DRbObject.new_with_uri(uri)
|
@@ -450,11 +450,15 @@ module WorkflowManager
|
|
450
450
|
partition = if i = options.index("-p")
|
451
451
|
options[i+1]
|
452
452
|
end
|
453
|
+
nice = if i = options.index("-i")
|
454
|
+
options[i+1]
|
455
|
+
end
|
453
456
|
new_options = []
|
454
457
|
new_options << "--mem=#{ram}G" if ram
|
455
458
|
new_options << "-n #{cores}" if cores
|
456
459
|
new_options << "--tmp=#{scratch}G" if scratch
|
457
460
|
new_options << "-p #{partition}" if partition
|
461
|
+
new_options << "--nice=#{nice}" if nice
|
458
462
|
new_options.join(" ")
|
459
463
|
end
|
460
464
|
def submit_job(script_file, script_content, option='')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: workflow_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Functional Genomics Center Zurich
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|