rbbt-util 5.5.52 → 5.5.53
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/rbbt/util/misc.rb +10 -2
- data/lib/rbbt/workflow/accessor.rb +2 -2
- data/share/rbbt_commands/workflow/task +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OTkzYTk1MmNmYzZiZmU4ZWZkYzEyYWM2OWQ2NTlkZjhiY2ZmMzFiNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NTYxODIwMzYyY2VlZTFlYmVlM2Q0ODRjYjg1OWE5NTlmMjgxYTg5Ng==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YjhlMjg4MGFlMTViZmNmNDM4YWE1YTRjM2E5NDEwY2NmYTYyNWNhZTU1NDc5
|
10
|
+
OTBjZDJjYTM3ZjBiY2U5NDg5YjI2OTMwZjhmMjMzZTVjYzJiOGFmMzNmZjc3
|
11
|
+
N2IyMjBhN2RiYjJjYjAwZWUxZDA5MzE1NzdhZDlhYTJkZTQ5Nzc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NjQwYzU5OGIwNTRmNzM5MjljYzExYzlmMzI3ZTBhMzA3ZGNkMTMwZDYwMWQw
|
14
|
+
NjUyNWQzNzYyMzliOGExN2ZkZjE5NjBlODFlZDFlMWIwOWQzZGI4Y2M5NThk
|
15
|
+
N2QwOGUyMmY0ODZiZTg3NmZmZGMxYWRkODNiMzNjNGMyYTdjYjc=
|
data/lib/rbbt/util/misc.rb
CHANGED
@@ -300,6 +300,10 @@ module Misc
|
|
300
300
|
end
|
301
301
|
end
|
302
302
|
|
303
|
+
def self.remove_long_items(obj)
|
304
|
+
return fingerprint(obj)
|
305
|
+
end
|
306
|
+
|
303
307
|
def self.ensembl_server(organism)
|
304
308
|
date = organism.split("/")[1]
|
305
309
|
if date.nil?
|
@@ -800,12 +804,16 @@ end
|
|
800
804
|
$__did_once = false
|
801
805
|
end
|
802
806
|
|
803
|
-
def self.insist(times = 3, sleep = nil)
|
807
|
+
def self.insist(times = 3, sleep = nil, msg = nil)
|
804
808
|
try = 0
|
805
809
|
begin
|
806
810
|
yield
|
807
811
|
rescue
|
808
|
-
|
812
|
+
if msg
|
813
|
+
Log.warn("Insisting after exception: #{$!.message} -- #{msg}")
|
814
|
+
else
|
815
|
+
Log.warn("Insisting after exception: #{$!.message}")
|
816
|
+
end
|
809
817
|
sleep sleep if sleep
|
810
818
|
try += 1
|
811
819
|
retry if try < times
|
@@ -28,8 +28,8 @@ class Step
|
|
28
28
|
def info
|
29
29
|
return {} if info_file.nil? or not Open.exists? info_file
|
30
30
|
begin
|
31
|
-
Misc.insist(2, 2) do
|
32
|
-
Misc.insist(2, 0.5) do
|
31
|
+
Misc.insist(2, 2, info_file) do
|
32
|
+
Misc.insist(2, 0.5, info_file) do
|
33
33
|
Open.open(info_file) do |file|
|
34
34
|
INFO_SERIALIAZER.load(file) || {}
|
35
35
|
end
|