Skip to content

Commit 9aaefb8

Browse files
[python] Register fitable to the registration center during heartbeat
1 parent 969ddbc commit 9aaefb8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

framework/fit/python/plugin/fit_py_heart_beat_agent/heart_beat_agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ def _try_heart_beat_once():
9494
f"heart_beat_gap={'{:.3f}'.format(heart_beat_gap)}s, "
9595
f"heart_beat_interval={'{:.3f}'.format(_interval() / 1000)}s]")
9696
if _FAIL_COUNT != 0:
97-
_registry_fitable_addresses()
9897
sys_plugin_logger.info(f"heart beat reconnect success. [fail_count={_FAIL_COUNT}]")
9998
_FAIL_COUNT = 0
99+
_registry_fitable_addresses()
100100
sys_plugin_logger.debug(f'heart beating success.')
101101
_LAST_HEART_BEAT_SUCCESS_TIME = heart_beat_finish_time
102102
except:
@@ -169,7 +169,7 @@ def _registry_fitable_addresses():
169169
"""
170170
try:
171171
register_all_fit_services()
172-
sys_plugin_logger.info("In heart beat agent registry all fitable address success.")
172+
sys_plugin_logger.debug("In heart beat agent registry all fitable address success.")
173173
except:
174174
sys_plugin_logger.warning(f"In heart beat agent registry all fitable address failed.")
175175
except_type, except_value, except_traceback = sys.exc_info()

0 commit comments

Comments
 (0)