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
Backported-from: main
Backported-to: 23.09
  • Loading branch information
rapsealk authored and achimnol committed Oct 23, 2023
1 parent 80efdb1 commit 107eb6d
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 107eb6d

Please sign in to comment.