mirror of
https://github.com/wassname/ray.git
synced 2026-06-27 19:32:11 +08:00
Don't gather check_parent_task on Windows, since it's undefined. (#13700)
This commit is contained in:
+5
-2
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user