DEV: Verify DB connection before trying to clear active connections
This commit is contained in:
parent
f186e3e80b
commit
fac6147039
|
@ -128,6 +128,7 @@ module Scheduler
|
|||
rescue => ex
|
||||
Discourse.handle_job_exception(ex, message: "Processing deferred code queue")
|
||||
ensure
|
||||
ActiveRecord::Base.connection.verify!
|
||||
ActiveRecord::Base.connection_handler.clear_active_connections!
|
||||
if start
|
||||
@stats_mutex.synchronize do
|
||||
|
|
Loading…
Reference in New Issue