INNER CODE UNIT · Python
text
IDSIA/sacred · sacred/run.py:270
text = self.captured_out + text
if self.captured_out_filter is not None:
text = self.captured_out_filter(text)
self.captured_out = text
def _start_heartbeat(self):
self.run_logger.debug("Starting Heartbeat")
if self.beat_interval > 0:
self._stop_heartbeat_event, self._heartbeat = IntervalTimer.create(
self._emit_heartbeat, self.beat_interval
)
self._heartbeat.start()
def _stop_heartbeat(self):
self.run_logger.debug("Stopping Heartbeat")
# only stop if heartbeat was started
if self._heartbeat is not None:
self._stop_heartbeat_event.set()