Skip to content

Commit

Permalink
fix: Regression of AgentSummary GQL resolver (#3045)
Browse files Browse the repository at this point in the history
Backported-from: main
Backported-to: 23.09
Backported-of: 3045
  • Loading branch information
jopemachine committed Nov 28, 2024
1 parent 3be18ea commit 66b0a99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changes/3045.fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix regression of the `AgentSummary` resolver caused by an incorrect `batch_load_func` assignment.
4 changes: 2 additions & 2 deletions src/ai/backend/manager/models/gql.py
Original file line number Diff line number Diff line change
Expand Up @@ -742,9 +742,9 @@ async def resolve_agent_summary(
if ctx.local_config["manager"]["hide-agents"]:
raise ObjectNotFound(object_name="agent")

loader = ctx.dataloader_manager.get_loader(
loader = ctx.dataloader_manager.get_loader_by_func(
ctx,
"Agent",
AgentSummary.batch_load,
raw_status=None,
scaling_group=scaling_group,
domain_name=domain_name,
Expand Down

0 comments on commit 66b0a99

Please sign in to comment.