Restore large envs first

This commit is contained in:
Jan Renz
2015-11-23 20:20:34 +01:00
parent c41a8d8d5e
commit ffdde1830b

View File

@ -71,7 +71,7 @@ class DockerContainerPool
end
def self.refill
ExecutionEnvironment.where('pool_size > 0').each do |execution_environment|
ExecutionEnvironment.where('pool_size > 0').order(pool_size: :desc).each do |execution_environment|
if config[:refill][:async]
Concurrent::Future.execute { refill_for_execution_environment(execution_environment) }
else