Skip to content

Commit

Permalink
feat: load dataset change to non-fatel
Browse files Browse the repository at this point in the history
  • Loading branch information
wey-gu committed Jan 15, 2024
1 parent 787faad commit 611a334
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/nebulagraph_lite/nebulagraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ def load_basketballplayer_dataset(self):
f"-addr {self.host} -port {self.port} -u root -p nebula -e ':play basketballplayer'"
)
try:
time.sleep(10)
self._run_udocker(udocker_command)
except Exception as e:
fancy_dict_print(
Expand All @@ -355,8 +356,13 @@ def load_basketballplayer_dataset(self):
"udocker_command": udocker_command,
}
)
raise Exception("Failed to load basketballplayer dataset")
time.sleep(10)
fancy_dict_print(
{
"Info:": "Failed to load basketballplayer dataset, probably because the graphd is not ready yet or the cluster is not healthy, try this later from the console manually",
"command": f"udocker {udocker_command}",
"error": str(e),
}
)

def start_storaged(self, shoot=False):
if shoot:
Expand Down

0 comments on commit 611a334

Please sign in to comment.