Skip to content

Conversation

@jopemachine
Copy link
Member

@jopemachine jopemachine commented Jan 16, 2026

Resolves #6981 (BA-3173)

Checklist: (if applicable)

  • Milestone metadata specifying the target backport version
  • Mention to the original issue
  • Installer updates including:
    • Fixtures for db schema changes
    • New mandatory config options
  • Update of end-to-end CLI integration tests in ai.backend.test
  • API server-client counterparts (e.g., manager API -> client SDK)
  • Test case(s) to:
    • Demonstrate the difference of before/after
    • Demonstrate the flow of abstract/conceptual models with a concrete implementation
  • Documentation
    • Contents in the docs directory
    • docstrings in public interfaces and type annotations

Summary

  • Add fetch_kernels_by_agent fetcher function for querying kernels by agent
  • Add kernels field to AgentV2GQL with full pagination support:
    • Cursor-based pagination (before, after, first, last)
    • Offset-based pagination (limit, offset)
    • Filtering via KernelFilterGQL
    • Ordering via KernelOrderByGQL
    • resource_occupied_only filter for active kernels only
  • Export fetch_kernels_by_agent from kernel package

Dependencies

This PR depends on #8079 (KernelV2 GraphQL types).

🤖 Generated with Claude Code


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


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

@github-actions github-actions bot added size:L 100~500 LoC comp:manager Related to Manager component size:XL 500~ LoC area:docs Documentations and removed size:L 100~500 LoC labels Jan 16, 2026
@jopemachine jopemachine changed the title feat: Add kernels resolver to AgentV2GQL feat(BA-3173): Add kernels resolver to AgentV2GQL Jan 16, 2026
@jopemachine jopemachine changed the title feat(BA-3173): Add kernels resolver to AgentV2GQL feat(BA-3173): Add kernels resolver to AgentV2 GQL type Jan 16, 2026
@jopemachine jopemachine added this to the 26.1 milestone Jan 16, 2026
@jopemachine jopemachine force-pushed the feat/agent-v2-kernel-resolver branch 4 times, most recently from 3223c73 to cb62df0 Compare January 16, 2026 08:02
@github-actions github-actions bot added size:L 100~500 LoC and removed size:XL 500~ LoC labels Jan 16, 2026
@jopemachine jopemachine force-pushed the feat/agent-v2-kernel-resolver branch 2 times, most recently from 34383b5 to de2c03e Compare January 19, 2026 04:15
@github-actions github-actions bot added size:M 30~100 LoC and removed size:L 100~500 LoC labels Jan 19, 2026
jopemachine and others added 6 commits January 19, 2026 08:16
Add kernel resolver to AgentV2GQL for querying kernels running on an agent.

Key changes:
- Add fetch_kernels_by_agent fetcher function for querying kernels by agent
- Add kernels field to AgentV2GQL with full pagination support:
  - Cursor-based pagination (before, after, first, last)
  - Offset-based pagination (limit, offset)
  - Filtering via KernelFilterGQL
  - Ordering via KernelOrderByGQL
  - resource_occupied_only filter for active kernels
- Export fetch_kernels_by_agent from kernel package

Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Add KernelConditions.by_agent_ids, by_cursor_forward, by_cursor_backward
- Add search_kernels processor to SessionProcessors
- Fix KernelGQL -> KernelV2GQL in fetcher.py

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@jopemachine jopemachine force-pushed the feat/agent-v2-kernel-resolver branch from d22f488 to 1ae221f Compare January 19, 2026 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:docs Documentations comp:manager Related to Manager component size:M 30~100 LoC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants