Kill container in new thread

This commit is contained in:
Sebastian Serth
2020-03-22 15:09:04 +01:00
parent e7562edb38
commit 30fab618a7

View File

@ -278,8 +278,10 @@ class DockerClient
sleep(1)
@socket.close
end
Thread.new do
kill_container(container)
end
end
#ensure
# guarantee that the thread is releasing the DB connection after it is done
# ApplicationRecord.connectionpool.releaseconnection