remove this again. it caused immediate exit.
This commit is contained in:
@ -174,7 +174,7 @@ class DockerClient
|
|||||||
We need to start a second thread to kill the websocket connection,
|
We need to start a second thread to kill the websocket connection,
|
||||||
as it is impossible to determine whether further input is requested.
|
as it is impossible to determine whether further input is requested.
|
||||||
"""
|
"""
|
||||||
begin
|
#begin
|
||||||
@thread = Thread.new do
|
@thread = Thread.new do
|
||||||
timeout = @execution_environment.permitted_execution_time.to_i # seconds
|
timeout = @execution_environment.permitted_execution_time.to_i # seconds
|
||||||
sleep(timeout)
|
sleep(timeout)
|
||||||
@ -187,10 +187,10 @@ class DockerClient
|
|||||||
kill_container(container)
|
kill_container(container)
|
||||||
end
|
end
|
||||||
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
|
||||||
|
|
||||||
def exit_container(container)
|
def exit_container(container)
|
||||||
|
Reference in New Issue
Block a user