mirror of
https://github.com/ansible/awx.git
synced 2026-03-04 02:01:01 -03:30
Fixes "Task was destroyed but it is pending"
* asyncio.gather expects *tasks .. gotta unpack the list
This commit is contained in:
@@ -339,7 +339,7 @@ class WebSocketRelayManager(object):
|
|||||||
|
|
||||||
if deleted_remote_hosts:
|
if deleted_remote_hosts:
|
||||||
logger.info(f"Removing {deleted_remote_hosts} from websocket broadcast list")
|
logger.info(f"Removing {deleted_remote_hosts} from websocket broadcast list")
|
||||||
await asyncio.gather(self.cleanup_offline_host(h) for h in deleted_remote_hosts)
|
await asyncio.gather(*[self.cleanup_offline_host(h) for h in deleted_remote_hosts])
|
||||||
|
|
||||||
if new_remote_hosts:
|
if new_remote_hosts:
|
||||||
logger.info(f"Adding {new_remote_hosts} to websocket broadcast list")
|
logger.info(f"Adding {new_remote_hosts} to websocket broadcast list")
|
||||||
|
|||||||
Reference in New Issue
Block a user