delayed_jobs_verify_db_connection.rb 172 B

12345678910
  1. require 'delayed_job'
  2. module Delayed
  3. class Job < ::ActiveRecord::Base
  4. def self.recover_from(_error)
  5. ::ActiveRecord::Base.connection.verify!
  6. end
  7. end
  8. end