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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eab3aaac473e45e0b8ab82cb1d9d9b3e9d1c17b2
4
- data.tar.gz: a4e088c191e14afe9152790d43bca091e4210a49
3
+ metadata.gz: bd4dde354d9c3b7ff70878e1de3fc6cfaabb4bf5
4
+ data.tar.gz: 6b6865ff96ea9d198961953f14a838549ac52a26
5
5
  SHA512:
6
- metadata.gz: b19df3329f7e61688a59e8fb4b1b8b61b4c55c3204fd55c428f268364c8f9c74eaf1f993cba6bf14880776cba536a3373110653b8a8b318b5486aed458214029
7
- data.tar.gz: 20ae363668dfcf76c8b8791bfa459d4125f690c589f22c0528d192e81050490d1bc10543f9bbab5499744b2c2188f8a0c4aaed929bfd7d06008c178665eed522
6
+ metadata.gz: 9a208fbb2745bb961e75c4ac8effd23d36952f93efe92bf2c5b2315b5b2a3ee94510d3a96e6e11e2e3b1288133b293232c214120044c06dedb3eb246221925b3
7
+ data.tar.gz: 993379536dbaf267cfbfd4e5df518ea12bd94a0bfbf06af99bea8be5056b4bc487007bb0c386c59000239eb611bf64910b03eb5cd006d8cc8c66b670282807b4
@@ -3,7 +3,7 @@ module Restforce
3
3
  # :nodoc:
4
4
  module DB
5
5
 
6
- VERSION = "4.0.1"
6
+ VERSION = "4.0.2"
7
7
 
8
8
  end
9
9
 
@@ -125,7 +125,22 @@ module Restforce
125
125
  runner.load_timestamps(reader)
126
126
  end
127
127
 
128
- forked.run
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.1
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-26 00:00:00.000000000 Z
11
+ date: 2015-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord