From 2d34e95c933e90cdfe07384c1c892c52b29fcee4 Mon Sep 17 00:00:00 2001 From: Clark Zinzow Date: Wed, 27 Jan 2021 10:19:58 -0700 Subject: [PATCH] Don't gather check_parent_task on Windows, since it's undefined. (#13700) --- dashboard/agent.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dashboard/agent.py b/dashboard/agent.py index 7bf5e1551..a1afb5f77 100644 --- a/dashboard/agent.py +++ b/dashboard/agent.py @@ -185,8 +185,11 @@ class DashboardAgent(object): agent_port=self.grpc_port, agent_ip_address=self.ip)) - await asyncio.gather(check_parent_task, - *(m.run(self.server) for m in modules)) + tasks = [m.run(self.server) for m in modules] + if sys.platform not in ["win32", "cygwin"]: + tasks.append(check_parent_task) + await asyncio.gather(*tasks) + await self.server.wait_for_termination() # Wait for finish signal. await runner.cleanup()