restforce-db 4.0.1 → 4.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/restforce/db/version.rb +1 -1
- data/lib/restforce/db/worker.rb +16 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd4dde354d9c3b7ff70878e1de3fc6cfaabb4bf5
|
4
|
+
data.tar.gz: 6b6865ff96ea9d198961953f14a838549ac52a26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a208fbb2745bb961e75c4ac8effd23d36952f93efe92bf2c5b2315b5b2a3ee94510d3a96e6e11e2e3b1288133b293232c214120044c06dedb3eb246221925b3
|
7
|
+
data.tar.gz: 993379536dbaf267cfbfd4e5df518ea12bd94a0bfbf06af99bea8be5056b4bc487007bb0c386c59000239eb611bf64910b03eb5cd006d8cc8c66b670282807b4
|
data/lib/restforce/db/version.rb
CHANGED
data/lib/restforce/db/worker.rb
CHANGED
@@ -125,7 +125,22 @@ module Restforce
|
|
125
125
|
runner.load_timestamps(reader)
|
126
126
|
end
|
127
127
|
|
128
|
-
|
128
|
+
begin
|
129
|
+
forked.run
|
130
|
+
rescue => e
|
131
|
+
# NOTE: Due to thread-safety issues in any of a number of libraries
|
132
|
+
# included in the host application (even ActiveSupport itself), our
|
133
|
+
# forked processes may occasionally encounter LoadErrors.
|
134
|
+
#
|
135
|
+
# Retrying here is our way of handling that. It's not great, but
|
136
|
+
# it's the best we can do for now without sacrificing the benefits
|
137
|
+
# of forking our task manager runs.
|
138
|
+
#
|
139
|
+
# In the event that the master process has received a kill signal,
|
140
|
+
# we can safely crash instead of attempting a retry -- we don't want
|
141
|
+
# to fight with intentional user actions.
|
142
|
+
stop? ? raise(e) : retry
|
143
|
+
end
|
129
144
|
end
|
130
145
|
end
|
131
146
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: restforce-db
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Horner
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08
|
11
|
+
date: 2015-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|