rbbt-util 5.5.65 → 5.5.66
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rbbt/workflow/accessor.rb +6 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9cbfa543f290399df522bae4a10ef0fa0d7df6cb
|
4
|
+
data.tar.gz: 73a3f35d949f3d50829d1cf4cfbba9a160d56fad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70c83b4f316c4b63dd317de6a5cf90cb3e0f5a9dbceaf21c875d17711f7bf171d00d3df8159fc2988b597ad74b03e43d14609111310d1efd5426f3d3fb3e5f59
|
7
|
+
data.tar.gz: bebdfed76528603f8296d3858b42ae5b99010a113aa56f7753d939ff9d669e24846a34622b781f5b061d7ec49e20aa77a69217f44bd31cfe20860fe959b44071
|
@@ -27,14 +27,17 @@ class Step
|
|
27
27
|
|
28
28
|
def info
|
29
29
|
return {} if info_file.nil? or not Open.exists? info_file
|
30
|
+
return @info_cache if @info_cache and File.mtime(info_file) < @info_cache_time
|
30
31
|
begin
|
31
|
-
Misc.insist(2, 2, info_file) do
|
32
|
+
@info_cache = Misc.insist(2, 2, info_file) do
|
32
33
|
Misc.insist(2, 0.5, info_file) do
|
33
34
|
Open.open(info_file) do |file|
|
34
35
|
INFO_SERIALIAZER.load(file) || {}
|
35
36
|
end
|
36
37
|
end
|
37
38
|
end
|
39
|
+
@info_cache_time = Time.now
|
40
|
+
@info_cache
|
38
41
|
rescue Exception
|
39
42
|
Log.debug{"Error loading info file: " + info_file}
|
40
43
|
Open.write(info_file, INFO_SERIALIAZER.dump({:status => :error, :messages => ["Info file lost"]}))
|
@@ -48,7 +51,9 @@ class Step
|
|
48
51
|
Open.lock(info_file) do
|
49
52
|
i = info
|
50
53
|
i[key] = value
|
54
|
+
@info_cache = i
|
51
55
|
Open.write(info_file, INFO_SERIALIAZER.dump(i))
|
56
|
+
@info_cache_time = Time.now
|
52
57
|
value
|
53
58
|
end
|
54
59
|
end
|