rjob 0.5.4 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rjob/version.rb +1 -1
- data/lib/rjob/worker_process.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1de4a3b3e8be5af5e5f17b5c569c3851b9ed5c7ee94cd38fc7d7b61b1f6035ea
|
4
|
+
data.tar.gz: 5bc34fa2eee95a23a667c21c5373318e48e16eaa559f123b05d41be3525ac9a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de1b0664b64a4503cc525be2c37e5abc200f0b92505100917f1aacdffb16a5a68f7f708e90abf64a0fd07530afb72c44a16aee64e9fd192706529af768cf7391
|
7
|
+
data.tar.gz: b37d75d2595f979ce02f8279fbd38a4ccea283e4baaeee303402a969424c473567e907c581302a6f826f02a765570bfd4f200d043485a5825327f8bcb0bb1ca0
|
data/lib/rjob/version.rb
CHANGED
data/lib/rjob/worker_process.rb
CHANGED
@@ -255,6 +255,10 @@ class Rjob::WorkerProcess
|
|
255
255
|
retry_options = job.worker_class.retry_options
|
256
256
|
|
257
257
|
if retry_options[:retry]
|
258
|
+
if retry_options[:retry].is_a?(Hash)
|
259
|
+
retry_options = retry_options.merge(retry: true).merge(retry_options[:retry])
|
260
|
+
end
|
261
|
+
|
258
262
|
exceptions = retry_options.fetch(:exceptions, [StandardError])
|
259
263
|
should_handle = exceptions.any? { |e| e >= error[:error_class] }
|
260
264
|
|