sushi_fabric 0.5.8 → 0.5.9
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.
- data/lib/sushi_fabric/sushiApp.rb +5 -5
- data/lib/sushi_fabric/version.rb +1 -1
- metadata +1 -1
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# encoding: utf-8
|
3
|
-
# Version = '20160331-
|
3
|
+
# Version = '20160331-152819'
|
4
4
|
|
5
5
|
require 'csv'
|
6
6
|
require 'fileutils'
|
@@ -355,15 +355,15 @@ class SushiApp
|
|
355
355
|
else
|
356
356
|
@scratch_result_dir + '_temp$$'
|
357
357
|
end
|
358
|
-
|
359
|
-
|
360
|
-
|
358
|
+
hold_jid_option = if @dataset_sushi_id and parent_data_set = DataSet.find_by_id(@dataset_sushi_id.to_i) and !parent_data_set.jobs.empty?
|
359
|
+
parent_data_set_job_ids = parent_data_set.jobs.map{|job| job.submit_job_id}.join(",")
|
360
|
+
"#\$ -hold_jid #{parent_data_set_job_ids}"
|
361
361
|
else
|
362
362
|
''
|
363
363
|
end
|
364
364
|
@out.print <<-EOF
|
365
365
|
#!/bin/bash
|
366
|
-
|
366
|
+
#{hold_jid_option}
|
367
367
|
set -e
|
368
368
|
set -o pipefail
|
369
369
|
|
data/lib/sushi_fabric/version.rb
CHANGED