Skip to content

Commit

Permalink
fix: Use ContainerRegistry's hostname as Relay node ID (#1631)
Browse files Browse the repository at this point in the history
  • Loading branch information
rapsealk authored Oct 23, 2023
1 parent 2d54bb6 commit 59c5cc1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions changes/1631.fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Use `ContainerRegistry.hostname` as ID to provide an unique identifier for each GraphQL node.
1 change: 1 addition & 0 deletions src/ai/backend/manager/models/etcd.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ class Meta:
@classmethod
def from_row(cls, hostname: str, config: Mapping[str, str | list | None]) -> ContainerRegistry:
return cls(
id=hostname,
hostname=hostname,
config=ContainerRegistryConfig(
url=config.get(""),
Expand Down

0 comments on commit 59c5cc1

Please sign in to comment.