def test_can_create_master(self): master = create_master("ipc:///tmp/worker", "ipc:///tmp/frontend", "ipc:///tmp/monitor/") self.assertIsInstance(master, Master)
from lib import create_master import os master = create_master(os.environ['WORKER_ADDR'], os.environ['API_ADDR'], os.environ['MONITOR_ADDR']) master.run()
from lib import create_master import os master = create_master(os.environ['WORKER_ADDR'], os.environ['FRONTEND_ADDR'], os.environ['MONITOR_ADDR']) master.run()