def rebuild_container_pool(): hosts = Host.query.all() for host in hosts: key = 'eru:agent:%s:containers:meta' % host.name rds.delete(key) for c in host.containers.all(): add_container_for_agent(c)
def migrate_container_set(host): containers = Container.get_multi_by_host(host) for c in containers: add_container_for_agent(c)