Show heartbeat message earlier after changing the state

This commit is contained in:
hroff-1902 2020-02-23 00:21:19 +03:00
parent d9ecf3e4bf
commit ca8e52dc2c

View File

@ -83,6 +83,10 @@ class Worker:
if state == State.RUNNING:
self.freqtrade.startup()
# Reset heartbeat timestamp to log the heartbeat message at
# first throttling iteration when the state changes
self._heartbeat_msg = 0
if state == State.STOPPED:
# Ping systemd watchdog before sleeping in the stopped state
if self._sd_notify: