sushi_fabric 0.5.7 → 0.5.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sushi_fabric/sushiApp.rb +10 -3
- data/lib/sushi_fabric/version.rb +1 -1
- metadata +2 -2
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# encoding: utf-8
|
3
|
-
# Version = '
|
3
|
+
# Version = '20160331-140604'
|
4
4
|
|
5
5
|
require 'csv'
|
6
6
|
require 'fileutils'
|
@@ -355,8 +355,15 @@ class SushiApp
|
|
355
355
|
else
|
356
356
|
@scratch_result_dir + '_temp$$'
|
357
357
|
end
|
358
|
+
parent_data_set_job_ids = if @dataset_sushi_id and data_set = DataSet.find_by_id(@dataset_sushi_id.to_i)
|
359
|
+
parent_data_set = data_set.data_set
|
360
|
+
parent_data_set.jobs.map{|job| job.submit_job_id}.join(",")
|
361
|
+
else
|
362
|
+
''
|
363
|
+
end
|
358
364
|
@out.print <<-EOF
|
359
365
|
#!/bin/bash
|
366
|
+
#\$ -hold_jid #{parent_data_set_job_ids}
|
360
367
|
set -e
|
361
368
|
set -o pipefail
|
362
369
|
|
@@ -412,8 +419,8 @@ rm -rf #{@scratch_dir} || exit 1
|
|
412
419
|
script_content = File.read(job_script)
|
413
420
|
job_id = 0
|
414
421
|
begin
|
415
|
-
|
416
|
-
job_id = @workflow_manager.start_monitoring2(job_script, script_content, @user, project_number, gsub_options.join(' '), @gstore_script_dir)
|
422
|
+
job_id = @workflow_manager.start_monitoring(job_script, @user, 0, script_content, project_number, gsub_options.join(' '), @gstore_script_dir)
|
423
|
+
#job_id = @workflow_manager.start_monitoring2(job_script, script_content, @user, project_number, gsub_options.join(' '), @gstore_script_dir)
|
417
424
|
rescue => e
|
418
425
|
time = Time.now.strftime("[%Y.%m.%d %H:%M:%S]")
|
419
426
|
@logger.error("*"*50)
|
data/lib/sushi_fabric/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: sushi_fabric
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.5.
|
5
|
+
version: 0.5.8
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Functional Genomics Center Zurich
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2016-03-
|
13
|
+
date: 2016-03-31 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|