Mentions légales du service

Skip to content
Snippets Groups Projects
Commit e799b319 authored by LEPAGE Gaetan's avatar LEPAGE Gaetan
Browse files

minor things

parent 9d6840fc
No related branches found
No related tags found
No related merge requests found
Pipeline #557792 passed
......@@ -49,7 +49,6 @@ def _update_loop(socket_io: socketio.Server) -> None:
# If the update fails, just ignore it and try another time.
try:
payload_dict: dict = cluster.update()
# payload_dict: dict = {}
socket_io.emit(
event='update',
......@@ -61,7 +60,7 @@ def _update_loop(socket_io: socketio.Server) -> None:
# Eventually wait before updating again
if REFRESH_TIME > 0:
LOGGER.info("waiting %is before updating again", REFRESH_TIME)
LOGGER.debug("waiting %is before updating again", REFRESH_TIME)
time.sleep(REFRESH_TIME)
step_counter += 1
......@@ -91,7 +90,7 @@ def callback_disconnect(*args) -> None:
def main() -> None:
# Run the update loop that gets updates from the data fetcher.
# Run the update loop that queries cluster information
socket_io.start_background_task(
target=_update_loop,
socket_io=socket_io
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment