rbbt-util 5.26.145 → 5.26.146
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rbbt/hpc.rb +5 -7
- data/lib/rbbt/workflow/step/run.rb +2 -1
- data/test/rbbt/test_hpc.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f8d0361a7bc2ba9a9f0592163c75412323e05f8176fccfc2b26449222a755c7
|
4
|
+
data.tar.gz: '031648bb9feb9b389f8d79f1a0b9fbe2975417116a30449165f09edf34cb627d'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '094371d751166f66599f75f7e9199602130110343df39a0872327650b1198a042abcbf469da8ea78945323aeee5a7cfbd4ab8f7ad3a62cd97c9760bc4be5a7db'
|
7
|
+
data.tar.gz: 364b2612168f4223cd3752409c5dd8e6e678b6dc0d047c47c95579588f097ff8bc2b40f9caacc034bb2a0aceb52eacf5d174a88429ad4dd6c16014f128c5087c
|
data/lib/rbbt/hpc.rb
CHANGED
@@ -267,8 +267,6 @@ EOF
|
|
267
267
|
# Save exit status
|
268
268
|
exit_status=$?
|
269
269
|
|
270
|
-
# Clean job.id, since we are done
|
271
|
-
rm #{fjob}
|
272
270
|
EOF
|
273
271
|
|
274
272
|
# CODA
|
@@ -315,13 +313,13 @@ singularity exec -e -C -H "$CONTAINER_DIR" "$SINGULARITY_IMG" rm -v /dev/shm/sem
|
|
315
313
|
|
316
314
|
|
317
315
|
# Clean container directory
|
318
|
-
if [ $exit_status == '0' -a $sync_es == '0' ]; then
|
316
|
+
#if [ $exit_status == '0' -a $sync_es == '0' ]; then
|
319
317
|
singularity exec -e -C -H "$CONTAINER_DIR" "$SINGULARITY_IMG" rbbt system clean -f &>> #{fsync}
|
320
318
|
singularity exec -e -C -H "$CONTAINER_DIR" "$SINGULARITY_IMG" rm -Rfv .rbbt/var/jobs &>> #{fsync}
|
321
319
|
singularity exec -e -C -H "$CONTAINER_DIR" "$SINGULARITY_IMG" rm -Rfv tmp/ &>> #{fsync}
|
322
|
-
else
|
323
|
-
echo "ERROR: Process failed or results could not sync correctly. Contain directory not purged" &>> #{fsync}
|
324
|
-
fi
|
320
|
+
#else
|
321
|
+
# echo "ERROR: Process failed or results could not sync correctly. Contain directory not purged" &>> #{fsync}
|
322
|
+
#fi
|
325
323
|
EOF
|
326
324
|
else
|
327
325
|
coda +=<<-EOF
|
@@ -531,7 +529,7 @@ EOF
|
|
531
529
|
end
|
532
530
|
end
|
533
531
|
|
534
|
-
def relay(job, options={})
|
532
|
+
def self.relay(job, options={})
|
535
533
|
options = Misc.add_defaults options, :target => 'mn1', :search_path => 'user'
|
536
534
|
done_deps = job.dependencies.select do |dep|
|
537
535
|
dep.done?
|
@@ -411,7 +411,8 @@ class Step
|
|
411
411
|
|
412
412
|
set_info :dependencies, dependencies.collect{|dep| [dep.task_name, dep.name, dep.path]}
|
413
413
|
|
414
|
-
|
414
|
+
config_keys = Rbbt::Config::GOT_KEYS[config_keys_pre.length..-1]
|
415
|
+
set_info :config_keys, config_keys
|
415
416
|
|
416
417
|
if result.nil? && File.exists?(self.tmp_path) && ! File.exists?(self.path)
|
417
418
|
Open.mv self.tmp_path, self.path
|
data/test/rbbt/test_hpc.rb
CHANGED
@@ -2,8 +2,10 @@ require File.join(File.expand_path(File.dirname(__FILE__)), '..', 'test_helper.r
|
|
2
2
|
require 'rbbt/hpc'
|
3
3
|
require 'rbbt/workflow'
|
4
4
|
|
5
|
-
|
5
|
+
|
6
|
+
class TestHPC < Test::Unit::TestCase
|
6
7
|
def test_relay
|
8
|
+
|
7
9
|
Log.severity = 0
|
8
10
|
Workflow.require_workflow "Translation"
|
9
11
|
job = Translation.job(:translate, nil, :genes => %w(TP53 KRAS))
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbbt-util
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.26.
|
4
|
+
version: 5.26.146
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Vazquez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-02-
|
11
|
+
date: 2020-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|