mirror of
https://github.com/koush/scrypted.git
synced 2026-05-06 22:20:28 +01:00
server: fixup address, make it available on cluster manager
This commit is contained in:
@@ -243,6 +243,9 @@ class ClusterManager(scrypted_python.scrypted_sdk.types.ClusterManager):
|
||||
def getClusterMode(self) -> Any | Any:
|
||||
return os.getenv("SCRYPTED_CLUSTER_MODE", None)
|
||||
|
||||
def getClusterAddress(self) -> str:
|
||||
return os.getenv("SCRYPTED_CLUSTER_ADDRESS", None)
|
||||
|
||||
def getClusterWorkerId(self) -> str:
|
||||
return self.remote.clusterSetup.clusterWorkerId
|
||||
|
||||
|
||||
Reference in New Issue
Block a user