Skip to content
Snippets Groups Projects
Commit 75c45ed8 authored by Chris Pastl's avatar Chris Pastl
Browse files

refactor: allow disabling heartbeat timer to meet testcase requirements

parent e5184da2
No related branches found
No related tags found
1 merge request!39Improve test coverage for monitor
......@@ -309,10 +309,9 @@ class AuraMonitor:
{"engine_id": self.engine_id, "status": status}
)
heartbeat_frq = self.config.monitoring.heartbeat.frequency # default: 1
if int(heartbeat_frq or 0) < 1:
heartbeat_frq = 1
threading.Timer(heartbeat_frq, self.heartbeat).start()
heartbeat_frq = self.config.monitoring.heartbeat.frequency # default: 1, disable: 0
if heartbeat_frq > 1:
threading.Timer(heartbeat_frq, self.heartbeat).start()
def validate_url_connection(self, url):
"""
......
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