temporarily uncomment database connection removal (in order to be sure that this does not cause problems)

This commit is contained in:
Ralf Teusner
2015-11-09 09:38:44 +01:00
parent 589a58b520
commit 7f3189615f

View File

@ -174,7 +174,7 @@ class DockerClient
as it is impossible to determine whether further input is requested. as it is impossible to determine whether further input is requested.
""" """
@thread = Thread.new do @thread = Thread.new do
begin #begin
timeout = @execution_environment.permitted_execution_time.to_i # seconds timeout = @execution_environment.permitted_execution_time.to_i # seconds
sleep(timeout) sleep(timeout)
if container.status != :returned if container.status != :returned
@ -185,10 +185,10 @@ class DockerClient
end end
kill_container(container) kill_container(container)
end end
ensure # ensure
#guarantee that the thread is releasing the DB connection after it is done # #guarantee that the thread is releasing the DB connection after it is done
ActiveRecord::Base.connectionpool.releaseconnection # ActiveRecord::Base.connectionpool.releaseconnection
end # end
end end
end end