Try getting cluster dashboard_link before asking scheduler
This is very slightly more robust
@@ -803,10 +803,10 @@ class Client:
@property
def dashboard_link(self):
- scheduler, info = self._get_scheduler_info()
try:
return self.cluster.dashboard_link
except AttributeError:
+ scheduler, info = self._get_scheduler_info()
protocol, rest = scheduler.address.split("://")
port = info["services"]["dashboard"]
