test_tree_cluster.py 文件源码

python
阅读 16 收藏 0 点赞 0 评论 0

项目:raptiformica 作者: vdloo 项目源码 文件源码
def spawn_docker_instances(self):
        # Must create shared secret beforehand otherwise the
        # testcase does not know which instances are relevant
        ensure_shared_secret('cjdns')

        spawn_command = "spawn --no-assimilate " \
                        "--server-type headless " \
                        "--compute-type docker"
        pool = ThreadPool(self.workers)
        for _ in range(self.amount_of_instances):
            pool.apply_async(
                run_raptiformica_command,
                args=(self.temp_cache_dir, spawn_command)
            )
            sleep(20)
        pool.close()
        pool.join()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号