workflow_manager 0.3.8 → 0.3.9

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: b886550f64757d521efa14ad7aa0b3069f8154d6
4
- data.tar.gz: 4f0bc2ff94c94b558e7324754d34228bdd0cac55
3
+ metadata.gz: 18ae8afa0d8c422d163839c81a930793a149361e
4
+ data.tar.gz: 72f450e946fdc603978f710eb520dbb8c41d261a
5
5
  SHA512:
6
- metadata.gz: 67d550af640f7e54cb5763ffa7892e95c5e0c6e173674d8238f097e48b891c9051d8e635cd0e85b6336ac966c75fad8fed61cc8879a8a4ed80c078f72a60ada8
7
- data.tar.gz: 2bb89597aa0d715fd108a285786741b757c2dbf6fc2c8af5a28bd5646abdd95bcc8a7003d79d9b347e2610ed50f91f857c3a8395a944ed5a4faefc6e4f30ade8
6
+ metadata.gz: bf583dd83202286eac771eebba6b3263c9a5d17a3a8ea7caeb6e165907623b517560592738647d513a98e9a85b165a6b657746605fff5a28029b5ac61ff3bc71
7
+ data.tar.gz: e4babb61dc0f21012f1bee086e522985b232bf3301b20cfca676c46ebc6fe52675a1339acb6edafe2e2274afa725714e5898f5978695e62478d6c69186010607
data/bin/workflow_manager CHANGED
@@ -17,8 +17,12 @@ if opt.mode =~ /[development|production]/
17
17
  config = File.join(File.dirname(File.expand_path(__FILE__)), "../config/environments/#{opt.mode}.rb")
18
18
  opt.mode = nil unless File.exist?(config)
19
19
  end
20
- print "version = #{Version}\n"
21
- print "mode = #{opt.mode}\n"
20
+ puts "version = #{Version}"
21
+ puts "mode = #{opt.mode}"
22
+ ruby_path = File.join(RbConfig.expand("$(bindir)"), "ruby")
23
+ puts "ruby = #{ruby_path}"
24
+ gem_path = Gem::path
25
+ puts "GEM_PATH = #{gem_path.join(',')}"
22
26
  if opt.mode
23
27
  config_dir = "./config/environments/"
24
28
  FileUtils.mkdir_p config_dir
@@ -92,7 +92,8 @@ module WorkflowManager
92
92
 
93
93
  class FGCZCluster < Cluster
94
94
  def submit_job(script_file, script_content, option='')
95
- if script_name = File.basename(script_file) and script_name =~ /\.sh$/
95
+ if script_name = File.basename(script_file) and script_name =~ /\.sh/
96
+ script_name = script_name.split(/\.sh/).first + ".sh"
96
97
  new_job_script = generate_new_job_script(script_name, script_content)
97
98
  new_job_script_base = File.basename(new_job_script)
98
99
  log_file = File.join(@log_dir, new_job_script_base + "_o.log")
@@ -101,6 +102,10 @@ module WorkflowManager
101
102
  job_id = `#{command}`
102
103
  job_id = job_id.match(/Your job (\d+) \(/)[1]
103
104
  [job_id, log_file, command]
105
+ else
106
+ err_msg = "FGCZCluster#submit_job, ERROR: script_name is not *.sh: #{File.basename(script_file)}"
107
+ warn err_msg
108
+ raise err_msg
104
109
  end
105
110
  end
106
111
  def job_running?(job_id)
@@ -1,3 +1,3 @@
1
1
  module WorkflowManager
2
- VERSION = "0.3.8"
2
+ VERSION = "0.3.9"
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.3.8
4
+ version: 0.3.9
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: 2017-12-22 00:00:00.000000000 Z
11
+ date: 2018-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  version: '0'
103
103
  requirements: []
104
104
  rubyforge_project:
105
- rubygems_version: 2.4.5.1
105
+ rubygems_version: 2.6.14
106
106
  signing_key:
107
107
  specification_version: 4
108
108
  summary: Workflow Manager manages job submissions using dRuby.