added mtoken

This commit is contained in:
Lucas Armand
2025-11-04 15:55:14 -08:00
parent ec2ac0a21a
commit 47e5460532
3 changed files with 11 additions and 0 deletions
+4
View File
@@ -69,10 +69,14 @@ class Backend:
report_addr: str = dataclasses.field(
default_factory=lambda: os.environ.get("REPORT_ADDR", "https://run.vast.ai")
)
mtoken: str = dataclasses.field(
default_factory=lambda: os.environ.get("MASTER_TOKEN", "")
)
def __post_init__(self):
self.metrics = Metrics()
self.metrics._set_version(self.version)
self.metrics._set_mtoken(self.mtoken)
self._total_pubkey_fetch_errors = 0
self._pubkey = self._fetch_pubkey()
self.__start_healthcheck: bool = False