Skip to content

Commit

Permalink
fix: check if node is started in core_health_check
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintShit committed Feb 20, 2024
1 parent 9c4b274 commit bbd055b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/jobs/0_xray_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ def core_health_check():
for node_id, node in list(xray.nodes.items()):
if node.connected:
try:
assert node.started
node.api.get_sys_stats()
except (ConnectionError, xray_exc.ConnectionError, xray_exc.UnknownError):
except (ConnectionError, xray_exc.ConnectionError, xray_exc.UnknownError, AssertionError):
if not config:
config = xray.config.include_db_users()
xray.operations.restart_node(node_id, config)
Expand Down

0 comments on commit bbd055b

Please sign in to comment.