mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 02:48:28 +08:00
fix bug where non-multisite environment would run out of connections
This commit is contained in:
@ -66,7 +66,11 @@ module Jobs
|
||||
ActiveRecord::Base.connection_handler.clear_active_connections!
|
||||
end
|
||||
end
|
||||
|
||||
ensure
|
||||
ActiveRecord::Base.connection_handler.clear_active_connections!
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
def self.enqueue(job_name, opts={})
|
||||
|
Reference in New Issue
Block a user