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:
parent
a1ee4a9ff9
commit
bb03948945
1 changed files with 8 additions and 1 deletions
|
@ -78,7 +78,14 @@ module ActiveSupport
|
|||
reporter = job[2]
|
||||
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
|
||||
ensure
|
||||
run_cleanup(worker)
|
||||
|
|
Loading…
Reference in a new issue