lablup / backend.ai

Backend.AI is a streamlined, container-based computing cluster platform that hosts popular computing/ML frameworks and diverse programming languages, with pluggable heterogeneous accelerator support including CUDA GPU, ROCm GPU, TPU, IPU and other NPUs.
https://www.backend.ai
GNU Lesser General Public License v3.0
519 stars 153 forks source link

fix: Regression of `AgentSummary` GQL resolver #3045

Open jopemachine opened 1 week ago

jopemachine commented 1 week ago

When using the AgentSummary GQL query in the main branch, the following error occurs.

{
  "data": {
    "agent_summary": null
  },
  "errors": [
    {
      "message": "Agent.batch_load() got an unexpected keyword argument 'scaling_group'",
      "locations": [
        {
          "line": 2,
          "column": 5
        }
      ],
      "path": [
        "agent_summary"
      ]
    }
  ]
}

This PR fixes the above error and additionally resolves several type errors.

Checklist: (if applicable)


📚 Documentation preview 📚: https://sorna--3045.org.readthedocs.build/en/3045/


📚 Documentation preview 📚: https://sorna-ko--3045.org.readthedocs.build/ko/3045/