Skip to content

Conversation

@jopemachine
Copy link
Member

@jopemachine jopemachine commented Dec 18, 2025

resolves #7340 (BA-3399)

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

@github-actions github-actions bot added the size:L 100~500 LoC label Dec 18, 2025
@jopemachine jopemachine changed the title feat: Implement AutoScalingRule strawberry GraphQL DataLoaders feat(BA-3399): Implement AutoScalingRule strawberry GraphQL DataLoaders Dec 18, 2025
@github-actions github-actions bot added the comp:manager Related to Manager component label Dec 18, 2025
@jopemachine jopemachine added this to the 25.19 milestone Dec 18, 2025
Comment on lines 14 to 15
async def load_auto_scaling_rules_by_ids(
processor: Optional[DeploymentProcessors],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There seems to be no reason to make the processor optional.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deployment: Optional[DeploymentProcessors]

deployment under Processors is Optional.
I don't know why..

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deployment: Optional[DeploymentProcessors]

Comment on lines 43 to 49
@cached_property
def auto_scaling_rule_loader(
self,
) -> DataLoader[uuid.UUID, Optional[ModelDeploymentAutoScalingRuleData]]:
return DataLoader(
load_fn=partial(load_auto_scaling_rules_by_ids, self._processors.deployment)
)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original intention was to place the closure in the same place, but this is not bad either.

@jopemachine jopemachine added the action:on hold Hold it. Wait for the restart. label Dec 18, 2025
@HyeockJinKim HyeockJinKim force-pushed the main branch 2 times, most recently from 9552aac to 4af738e Compare December 31, 2025 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action:on hold Hold it. Wait for the restart. comp:manager Related to Manager component size:L 100~500 LoC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement AutoScalingRule domain DataLoaders

3 participants