We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0cfacd commit 9aaca83Copy full SHA for 9aaca83
plugins/admin/commands.py
@@ -888,9 +888,9 @@ async def _node_offline(node_name: str):
888
if node:
889
await _node_offline(node.name)
890
else:
891
- for node in await self.node.get_active_nodes():
892
- await _node_offline(node)
893
- await _node_offline(self.node.name)
+ tasks = [_node_offline(node.name) for node in self.bus.nodes.values()]
+ tasks.append(_node_offline(self.node.name))
+ await asyncio.gather(*tasks)
894
895
@node_group.command(description=_('Clears the maintenance mode for all servers'))
896
@app_commands.guild_only()
0 commit comments