Fix invalid reference to ContainerPool

This was a copy & paste mistake
This commit is contained in:
Sebastian Serth
2020-10-08 14:41:54 +02:00
parent 03d731c88e
commit f7c41db70c

View File

@ -312,7 +312,6 @@ class DockerClient
@thread = Thread.new do
timeout = (@execution_environment.permitted_execution_time.to_i) # seconds
sleep(timeout)
container = ContainerPool.instance.translate(container.id)
if container && container.status != :available
Rails.logger.info('Killing container after timeout of ' + timeout.to_s + ' seconds.')
# send timeout to the tubesock socket