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.
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # encoding: utf-8
3
- # Version = '20160331-140604'
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
- 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(",")
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
- #\$ -hold_jid #{parent_data_set_job_ids}
366
+ #{hold_jid_option}
367
367
  set -e
368
368
  set -o pipefail
369
369
 
@@ -1,3 +1,3 @@
1
1
  module SushiFabric
2
- VERSION = "0.5.8"
2
+ VERSION = "0.5.9"
3
3
  end
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.8
5
+ version: 0.5.9
6
6
  platform: ruby
7
7
  authors:
8
8
  - Functional Genomics Center Zurich