sushi_fabric 1.2.3 → 1.2.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4330f4843df678b5bd74f9c43ac7abcf036dc2b47284c7301d1b93b2e386bf40
4
- data.tar.gz: 7f1d59a9197e1c545fd8d3fdf9d98002fc05fd89ecd1651f62e6b238b43038e9
3
+ metadata.gz: 68c7143037755247fc850a7c574aa720ab8aa4f39412f8e449d6236fd5d89d90
4
+ data.tar.gz: f0bd2e3063d60ce06367eb46df75a4af63fa9c5c7d8629c7d59e2190ea0a444b
5
5
  SHA512:
6
- metadata.gz: 9f410544c24ec5ea2e8aa0815764cd1543d86ecc710aa514b224c724d698888acd4a2dc317889eeed02f36e300d66d9ed553641078aa5cb4b3eca193d8a838d8
7
- data.tar.gz: b7eb98af2294187665b83c5d5594f988f9495b9831cc7d9da0d5513dfd4c9abd838080d9b33ca76d7a00d40923f0075458019ea1fae721008934540be6829883
6
+ metadata.gz: ebb89970779ede7d176f38bd6cad8de240b027cfca028eae28d0fc1c75793d1c2293f881040ddb8733bfd351f111e772d20eb7e8c833229366f557e0eb4beee6
7
+ data.tar.gz: c385481e909ce0e60a41d208dcb2271e5240cb94f3205b4e51990d038c939734200d5b3fa879c14f1b9831d3a35f34ff48eb1d9ce35b8524b14e00bab48c46fa
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # encoding: utf-8
3
- # Version = '20230623-175030'
3
+ # Version = '20240723-154553'
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)
@@ -871,20 +872,6 @@ rm -rf #{@scratch_dir} || exit 1
871
872
  @current_user ||= nil
872
873
  @next_dataset_id = save_data_set(data_set_arr.to_a.flatten, headers, rows, @current_user, @child)
873
874
  save_parameters_in_sushi_db
874
-
875
- unless @off_bfabric_registration
876
- if next_dataset = DataSet.find_by_id(@next_dataset_id)
877
- next_dataset.register_bfabric(bfabric_application_number: @next_dataset_bfabric_application_number)
878
- if next_dataset.workunit_id
879
- @job_scripts.each do |job_script|
880
- open(job_script, "a") do |out|
881
- out.puts "WORKUNIT_ID=#{next_dataset.workunit_id}"
882
- out.puts "update_resource_size -w $WORKUNIT_ID"
883
- end
884
- end
885
- end
886
- end
887
- end
888
875
  end
889
876
  end
890
877
  copy_uploaded_files
@@ -1,3 +1,3 @@
1
1
  module SushiFabric
2
- VERSION = "1.2.3"
2
+ VERSION = "1.2.5"
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.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Functional Genomics Center Zurich
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-23 00:00:00.000000000 Z
11
+ date: 2024-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -69,7 +69,7 @@ homepage: ''
69
69
  licenses:
70
70
  - MIT
71
71
  metadata: {}
72
- post_install_message:
72
+ post_install_message:
73
73
  rdoc_options: []
74
74
  require_paths:
75
75
  - lib
@@ -84,8 +84,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  - !ruby/object:Gem::Version
85
85
  version: '0'
86
86
  requirements: []
87
- rubygems_version: 3.3.26
88
- signing_key:
87
+ rubygems_version: 3.5.5
88
+ signing_key:
89
89
  specification_version: 4
90
90
  summary: workflow manager client.
91
91
  test_files: