mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00
Don't gather check_parent_task on Windows, since it's undefined. (#13700)
This commit is contained in:
parent
c5b645e3da
commit
2d34e95c93
1 changed files with 5 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue