sushi_fabric 1.0.9 → 1.1.3
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/lib/sushi_fabric/sushiApp.rb +7 -6
- data/lib/sushi_fabric/version.rb +1 -1
- data/sushi_fabric.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07c091813e683833c643c422de04c2a225ad3475ce46cf864003836c6b1056f9
|
4
|
+
data.tar.gz: 03fa7b3efd213571886969d39e40cdb88e6af13e3b37a0ab195fafcc94a061da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49dc7c8c246fb31206cf949c0f2279ed6bced0d3c947a6c843cc0017899ede527650b6b862ff9846f8504be70e2a8360742ec68c40638878db647f3707d3f796
|
7
|
+
data.tar.gz: 23ceb3abf7b4928ccdc92b1fc04fe745d9924374a7767d583f5a64e8947464463aa4577ba548ef1648cf4ce13c0a5f39aae93ba5468bce0d8d809c4aada436e2
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# encoding: utf-8
|
3
|
-
# Version = '
|
3
|
+
# Version = '20211104-160141'
|
4
4
|
|
5
5
|
require 'csv'
|
6
6
|
require 'fileutils'
|
@@ -20,6 +20,7 @@ module SushiFabric
|
|
20
20
|
config.scratch_dir = '/tmp/scratch'
|
21
21
|
config.module_source = nil
|
22
22
|
config.course_mode = nil
|
23
|
+
config.rails_host = nil
|
23
24
|
end
|
24
25
|
|
25
26
|
# load custmized parameters if there is
|
@@ -41,6 +42,7 @@ module SushiFabric
|
|
41
42
|
config.scratch_dir = '/tmp/scratch'
|
42
43
|
config.module_source = nil
|
43
44
|
config.course_mode = nil
|
45
|
+
config.rails_host = nil
|
44
46
|
end
|
45
47
|
end
|
46
48
|
EOF
|
@@ -53,7 +55,7 @@ end
|
|
53
55
|
SUSHI_APP_DIR = config.sushi_app_dir
|
54
56
|
SCRATCH_DIR = config.scratch_dir
|
55
57
|
MODULE_SOURCE = config.module_source
|
56
|
-
|
58
|
+
RAILS_HOST = config.rails_host
|
57
59
|
unless File.exist?(GSTORE_DIR)
|
58
60
|
FileUtils.mkdir_p GSTORE_DIR
|
59
61
|
end
|
@@ -238,8 +240,6 @@ class SushiApp
|
|
238
240
|
@params['cores'] = nil
|
239
241
|
@params['ram'] = nil
|
240
242
|
@params['scratch'] = nil
|
241
|
-
@params['node'] = ''
|
242
|
-
@params['queue'] = ''
|
243
243
|
@params['partition'] = ''
|
244
244
|
@params['process_mode'] = 'SAMPLE'
|
245
245
|
@params['samples'] = ''
|
@@ -515,6 +515,7 @@ rm -rf #{@scratch_dir} || exit 1
|
|
515
515
|
gsub_options << "-p #{@params['partition']}" unless @params['partition'].to_s.empty?
|
516
516
|
gsub_options << "-r #{@params['ram']}" unless @params['ram'].to_s.empty?
|
517
517
|
gsub_options << "-s #{@params['scratch']}" unless @params['scratch'].to_s.empty?
|
518
|
+
gsub_options << "-i #{@params['nice']}" unless @params['nice'].to_s.empty?
|
518
519
|
command = "wfm_monitoring --server #{WORKFLOW_MANAGER} --user #{@user} --project #{@project.gsub(/p/,'')} --logdir #{@gstore_script_dir} #{job_script} #{gsub_options.join(' ')}"
|
519
520
|
puts "submit: #{command}"
|
520
521
|
|
@@ -523,8 +524,8 @@ rm -rf #{@scratch_dir} || exit 1
|
|
523
524
|
script_content = File.read(job_script)
|
524
525
|
job_id = 0
|
525
526
|
begin
|
526
|
-
job_id = @workflow_manager.start_monitoring(job_script, @user, 0, script_content, project_number, gsub_options.join(' '), @gstore_script_dir)
|
527
|
-
|
527
|
+
#job_id = @workflow_manager.start_monitoring(job_script, @user, 0, script_content, project_number, gsub_options.join(' '), @gstore_script_dir)
|
528
|
+
job_id = @workflow_manager.start_monitoring3(job_script, script_content, @user, project_number, gsub_options.join(' '), @gstore_script_dir, @next_dataset_id, RAILS_HOST)
|
528
529
|
rescue => e
|
529
530
|
time = Time.now.strftime("[%Y.%m.%d %H:%M:%S]")
|
530
531
|
@logger.error("*"*50)
|
data/lib/sushi_fabric/version.rb
CHANGED
data/sushi_fabric.gemspec
CHANGED
@@ -19,6 +19,6 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
|
-
spec.add_development_dependency "bundler", "~>
|
22
|
+
spec.add_development_dependency "bundler", "~> 2.2.10"
|
23
23
|
spec.add_development_dependency "rake"
|
24
24
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sushi_fabric
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.3
|
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-04
|
11
|
+
date: 2021-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 2.2.10
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 2.2.10
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
84
|
- !ruby/object:Gem::Version
|
85
85
|
version: '0'
|
86
86
|
requirements: []
|
87
|
-
rubygems_version: 3.0.3
|
87
|
+
rubygems_version: 3.0.3.1
|
88
88
|
signing_key:
|
89
89
|
specification_version: 4
|
90
90
|
summary: workflow manager client.
|