workflow_manager 0.7.7 → 0.7.8

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: aff589c219150c4a2b7e8676d8540343143a12099ce4bfed847663e37f946a99
4
- data.tar.gz: 64461e67991613603227c3894aa2b728db4952739071d140c007caefd8564601
3
+ metadata.gz: 8c60e97cd0b4f5c15220a65c77e296b90c38bcdf0218adea5700d6e71556c494
4
+ data.tar.gz: 201c8eb50cf7647bf4fa53abbd64586ec05b118a82e0fb053f4102977b3c6cb8
5
5
  SHA512:
6
- metadata.gz: 4e79f54d8335b4df34e466055d76cb8f64fa5c53787bf83047a7e259e5d564b0514e39d2b08ba56830dc73e9235164904806a34210e76e6e1018516e1f3bd243
7
- data.tar.gz: 9e3f4b1ce2adddc6b4b13e77e7bedbef74c9b635253ba77f9dbd0d731a5a6896a515404b481aa0c7f23b1a739f55142f5825fa7b7ffa8ecb8f7c7a3ba8754166
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 = '20210625-165025'
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='')
@@ -1,3 +1,3 @@
1
1
  module WorkflowManager
2
- VERSION = "0.7.7"
2
+ VERSION = "0.7.8"
3
3
  end
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.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-10-15 00:00:00.000000000 Z
11
+ date: 2021-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler