Fix invalid reference to ContainerPool
This was a copy & paste mistake
This commit is contained in:
@ -312,7 +312,6 @@ class DockerClient
|
|||||||
@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)
|
||||||
container = ContainerPool.instance.translate(container.id)
|
|
||||||
if container && container.status != :available
|
if container && container.status != :available
|
||||||
Rails.logger.info('Killing container after timeout of ' + timeout.to_s + ' seconds.')
|
Rails.logger.info('Killing container after timeout of ' + timeout.to_s + ' seconds.')
|
||||||
# send timeout to the tubesock socket
|
# send timeout to the tubesock socket
|
||||||
|
Reference in New Issue
Block a user