MCPcopy
hub / github.com/ray-project/ray / stop

Method stop

python/ray/tune/trainable/trainable.py:721–732  ·  view source on GitHub ↗

Releases all resources used by this trainable. Calls ``Trainable.cleanup`` internally. Subclasses should override ``Trainable.cleanup`` for custom cleanup procedures.

(self)

Source from the content-addressed store, hash-verified

719 self._stderr_context = None
720
721 def stop(self):
722 """Releases all resources used by this trainable.
723
724 Calls ``Trainable.cleanup`` internally. Subclasses should override
725 ``Trainable.cleanup`` for custom cleanup procedures.
726 """
727 if self._monitor.is_alive():
728 self._monitor.stop()
729 self._monitor.join()
730 self.cleanup()
731
732 self._close_logfiles()
733
734 @property
735 def logdir(self):

Callers

nothing calls this directly

Calls 4

cleanupMethod · 0.95
_close_logfilesMethod · 0.95
is_aliveMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected