From 7f3189615f367db8b9822999a5fab8827995a351 Mon Sep 17 00:00:00 2001 From: Ralf Teusner Date: Mon, 9 Nov 2015 09:38:44 +0100 Subject: [PATCH] temporarily uncomment database connection removal (in order to be sure that this does not cause problems) --- lib/docker_client.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/docker_client.rb b/lib/docker_client.rb index 4d36b64b..606d5ede 100644 --- a/lib/docker_client.rb +++ b/lib/docker_client.rb @@ -174,7 +174,7 @@ class DockerClient as it is impossible to determine whether further input is requested. """ @thread = Thread.new do - begin + #begin timeout = @execution_environment.permitted_execution_time.to_i # seconds sleep(timeout) if container.status != :returned @@ -185,10 +185,10 @@ class DockerClient end kill_container(container) end - ensure - #guarantee that the thread is releasing the DB connection after it is done - ActiveRecord::Base.connectionpool.releaseconnection - end + # ensure + # #guarantee that the thread is releasing the DB connection after it is done + # ActiveRecord::Base.connectionpool.releaseconnection + # end end end