1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

resque errors caused by Marshal dump failures and wrap exceptions in marshallable DRbRemoteError

This commit is contained in:
Lachlan Sylvester 2018-10-09 18:13:12 +11:00
parent a1ee4a9ff9
commit bb03948945

View file

@ -78,7 +78,14 @@ module ActiveSupport
reporter = job[2] reporter = job[2]
result = Minitest.run_one_method(klass, method) result = Minitest.run_one_method(klass, method)
queue.record(reporter, result) begin
queue.record(reporter, result)
rescue DRb::DRbConnError
result.failures.each do |failure|
failure.exception = DRb::DRbRemoteError.new(failure.exception)
end
queue.record(reporter, result)
end
end end
ensure ensure
run_cleanup(worker) run_cleanup(worker)