Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions openpod/modules/rec_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,10 @@ def keepalive():
log_api.error("Keepalive OSError: %s", err)

finally:

try:
log_api.debug('Keepalive check again in 30 seconds from now.') # DEBUG POINT
threading.Timer(30.0, keepalive).start()

except RuntimeError as err:
log_api.error("Keepalive thread RuntimeError: %s", err)
log_api.debug('Heartbeat check again in 30 seconds from now.') # DEBUG POINT
heartbeat_thread = threading.Timer(30.0, keepalive)
heartbeat_thread.daemon = True
heartbeat_thread.start()


# ---------------------------------------------------------------------------- #
Expand Down