Added temporary workaround for issue #2343 - Lost DB connection causes jobs to not be processed anymore.

This commit is contained in:
Thorsten Eckel 2018-11-13 14:45:02 +01:00
parent 5796f78c4f
commit db9e2800a8

View file

@ -0,0 +1,10 @@
require 'delayed_job'
module Delayed
class Job < ::ActiveRecord::Base
def self.recover_from(_error)
::ActiveRecord::Base.connection.verify!
end
end
end