sushi_fabric 1.2.3 → 1.2.4

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
  SHA256:
3
- metadata.gz: 4330f4843df678b5bd74f9c43ac7abcf036dc2b47284c7301d1b93b2e386bf40
4
- data.tar.gz: 7f1d59a9197e1c545fd8d3fdf9d98002fc05fd89ecd1651f62e6b238b43038e9
3
+ metadata.gz: 28252c62a5ac77892808193b02a694e48bf56c5f28cbe11ad8c26eb3076fd5d4
4
+ data.tar.gz: 9c15be2d98e78916fac71ebd653761e50b0b0f6ace6698ee15a277d73e28aea8
5
5
  SHA512:
6
- metadata.gz: 9f410544c24ec5ea2e8aa0815764cd1543d86ecc710aa514b224c724d698888acd4a2dc317889eeed02f36e300d66d9ed553641078aa5cb4b3eca193d8a838d8
7
- data.tar.gz: b7eb98af2294187665b83c5d5594f988f9495b9831cc7d9da0d5513dfd4c9abd838080d9b33ca76d7a00d40923f0075458019ea1fae721008934540be6829883
6
+ metadata.gz: 67e11563c751c2c2905f8109046d376c24fd16418707d7e39be79fae7b6c93a01a300cbed6d5fdcf97984af1e613510602a44add4358528affb58fe3b0de0994
7
+ data.tar.gz: 368bebe991f06642d8202eb7f65a97cb2dd6e762e01c712a1841e16350513dd45b59ef8b822a049163c383f5a00698057740faac540584158b71f97885e9b069
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # encoding: utf-8
3
- # Version = '20230623-175030'
3
+ # Version = '20231208-144616'
4
4
 
5
5
  require 'csv'
6
6
  require 'fileutils'
@@ -233,6 +233,7 @@ class SushiApp
233
233
  attr_accessor :next_dataset_bfabric_application_number
234
234
  attr_reader :inactivate_nodes
235
235
  attr_reader :employee
236
+ attr_accessor :queue
236
237
 
237
238
  def initialize
238
239
  @gstore_dir = GSTORE_DIR
@@ -496,13 +497,13 @@ conda activate sushi
496
497
  if dest_dirs.uniq.length == 1 and greq
497
498
  src_file = src_files.join(" ")
498
499
  dest_dir = dest_dirs.first
499
- @out.print copy_commands(src_file, dest_dir).join("\n"), "\n"
500
+ @out.print copy_commands(src_file, dest_dir, nil, @queue).join("\n"), "\n"
500
501
  else
501
502
  @output_files.map{|header| next_dataset[header]}.each do |file|
502
503
  # in actual case, to save under /srv/gstore/
503
504
  src_file = File.basename(file)
504
505
  dest_dir = File.dirname(File.join(@gstore_dir, file))
505
- @out.print copy_commands(src_file, dest_dir).join("\n"), "\n"
506
+ @out.print copy_commands(src_file, dest_dir, nil, @queue).join("\n"), "\n"
506
507
  end
507
508
  end
508
509
  end
@@ -632,12 +633,12 @@ rm -rf #{@scratch_dir} || exit 1
632
633
  end
633
634
  file_path
634
635
  end
635
- def copy_commands(org_dir, dest_parent_dir, now=nil)
636
+ def copy_commands(org_dir, dest_parent_dir, now=nil, queue="light")
636
637
  @workflow_manager||=DRbObject.new_with_uri(WORKFLOW_MANAGER)
637
638
  com = ''
638
639
  cnt_retry = 0
639
640
  begin
640
- com = @workflow_manager.copy_commands(org_dir, dest_parent_dir, now)
641
+ com = @workflow_manager.copy_commands(org_dir, dest_parent_dir, now, queue)
641
642
  rescue => e
642
643
  time = Time.now.strftime("[%Y.%m.%d %H:%M:%S]")
643
644
  @logger.error("*"*50)
@@ -1,3 +1,3 @@
1
1
  module SushiFabric
2
- VERSION = "1.2.3"
2
+ VERSION = "1.2.4"
3
3
  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.2.3
4
+ version: 1.2.4
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: 2023-06-23 00:00:00.000000000 Z
11
+ date: 2023-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler